Gitea Correct Domain

master
David Crompton 2023-10-26 13:07:56 -04:00
parent 583492c778
commit ad2ef22d8c
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ pkgs, config, ...}: let { pkgs, config, ...}: let
# Domain TBD # Domain TBD
domain = "git.kcnhub.syzygial.cc"; domain = "git.ws.kcnhub.com";
in { in {
services.gitea = { services.gitea = {
enable = true; enable = true;
@ -11,7 +11,7 @@ in {
settings = { settings = {
server = { server = {
HTTP_PORT = 5000; HTTP_PORT = 5000;
ROOT_URL = "https://git.${davesDomain}"; ROOT_URL = "https://${domain}";
}; };
actions = { actions = {
ENABLED = true; ENABLED = true;
@ -49,7 +49,7 @@ in {
}; };
services.caddy.virtualHosts = { services.caddy.virtualHosts = {
"${domain}" = { "${domain}" = {
extraConfig = '' extraConfig = ''
reverse_proxy 127.0.0.1:${toString config.services.gitea.settings.server.HTTP_PORT} reverse_proxy 127.0.0.1:${toString config.services.gitea.settings.server.HTTP_PORT}
''; '';
}; };