diff --git a/roles/server/default.nix b/roles/server/default.nix index e75390f..d5a0970 100755 --- a/roles/server/default.nix +++ b/roles/server/default.nix @@ -14,6 +14,5 @@ ./beep.nix ./wireguard.nix ./tailscale.nix - ./traefik.nix ]; } diff --git a/roles/server/gitea.nix b/roles/server/gitea.nix index 6cbac30..40c8cb9 100644 --- a/roles/server/gitea.nix +++ b/roles/server/gitea.nix @@ -9,32 +9,11 @@ server = { #server.SSH_PORT = 69; DISABLE_REGISTRATION = lib.mkDefault true; - ROOT_URL = "http://everest/gitea/"; + ROOT_URL = "http://everest.local:3000"; }; }; }; - # Set up traefik as the reverse proxy for Gitea - services.traefik = { - dynamicConfigOptions = { - http = { - routers = { - /* - Gitea works best as a subdomain, but I do not have a dns server (yet), - and since tailscale doesn't support adding subdomains with MagicDNS I'll - just put it in a subpath for now - */ - gitea-subpath = { - middlewares = [ "gitea-strip-prefix" ]; - rule = "PathPrefix(`/gitea`)"; - service = "gitea"; - }; - }; - services.gitea.loadBalancer.servers = [ - { url = "http://localhost:${toString config.services.gitea.settings.server.HTTP_PORT}"; } - ]; - # Gitea freaks out if you don't remove the subpath it's being proxied from - middlewares.gitea-strip-prefix.stripprefix.prefixes = "/gitea"; - }; - }; + networking.firewall = { + allowedTCPPorts = [ 3000 ]; }; } diff --git a/roles/server/traefik.nix b/roles/server/traefik.nix deleted file mode 100644 index c2b9442..0000000 --- a/roles/server/traefik.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ config, ... }: - -{ - services.traefik = { - enable = true; - staticConfigOptions = { - # Enable the web ui - api.insecure = true; - api.dashboard = true; - entryPoints = { - http = { address = ":80"; }; - }; - }; - }; - networking.firewall.allowedTCPPorts = [ 80 8080 ]; -}