add forgejo
This commit is contained in:
parent
6581a3ecb9
commit
31ac503e3c
3 changed files with 37 additions and 2 deletions
|
|
@ -56,6 +56,7 @@
|
|||
[ "PocketID" "authentik" "https://auth.proxy.satr14.my.id" "http://localhost:1411/" ]
|
||||
[ "AdGuardHome" "adguard" "https://dns.proxy.satr14.my.id" "http://localhost:8088/" ]
|
||||
[ "ApacheHTTPD" "apache" "https://cdn.proxy.satr14.my.id" "http://localhost:3000/" ]
|
||||
[ "Forgejo" "forgejo" "https://git.proxy.satr14.my.id" "http://localhost:5080/" ]
|
||||
];
|
||||
bookmarks = [
|
||||
[ "Tailscale" "tailscale" "https://login.tailscale.com/" ]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,36 @@
|
|||
{ ... }: {
|
||||
|
||||
{ homelab, ... }: {
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
DISABLE_SSH = true;
|
||||
DOMAIN = "git.proxy.${homelab.domain}";
|
||||
HTTP_ADDR = "127.0.0.1";
|
||||
HTTP_PORT = 8050;
|
||||
PROTOCOL = "http";
|
||||
ROOT_URL = "https://git.${homelab.domain}";
|
||||
LANDING_PAGE = "explore";
|
||||
};
|
||||
oauth2_client.ENABLE_AUTO_REGISTRATION=true;
|
||||
service = {
|
||||
# DISABLE_REGISTRATION = true;
|
||||
# ENABLE_OPENID_SIGNIN = true;
|
||||
# ENABLE_OPENID_SIGNUP = true;
|
||||
# ENABLE_INTERNAL_SIGNIN = false;
|
||||
# SHOW_REGISTRATION_BUTTON = false;
|
||||
# ALLOW_ONLY_EXTERNAL_REGISTRATION = true;
|
||||
# ALLOW_ONLY_INTERNAL_REGISTRATION = false;
|
||||
# REQUIRE_EXTERNAL_REGISTRATION_PASSWORD = true;
|
||||
};
|
||||
ui = {
|
||||
# THEMES = "catppuccin-blue-auto,catppuccin-mocha-blue,catppuccin-sapphire-auto,catppuccin-mocha-sapphire,auto";
|
||||
# DEFAULT_THEME = "catppuccin-mocha-blue";
|
||||
};
|
||||
user.ENABLE_FOLLOWING=false;
|
||||
repository = {
|
||||
DISABLE_STARS = true;
|
||||
DISABLE_FORKS = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
"dns" = { dest = "http://localhost:8088"; auth = true; };
|
||||
"cdn" = { dest = "http://localhost:3000"; auth = false; };
|
||||
"auth" = { dest = "http://localhost:1411"; auth = false; };
|
||||
"git" = { dest = "http://localhost:5080"; auth = false; };
|
||||
"@" = { dest = "http://localhost:5070"; auth = false; };
|
||||
};
|
||||
in {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue