diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-13 11:46:05 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-13 11:46:05 -0700 |
commit | b2cce1cd70dc033c73cf3de3dcfc5f62a510af19 (patch) | |
tree | ffc68154a75bbae75a81f377c29689173381329d /modules/services/gitea | |
parent | nginx: add nginx as a reverse proxy (diff) | |
download | world-b2cce1cd70dc033c73cf3de3dcfc5f62a510af19.tar.gz |
nginx: get a simple solution to work first
Diffstat (limited to '')
-rw-r--r-- | modules/services/gitea/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix index 6828439..6259c30 100644 --- a/modules/services/gitea/default.nix +++ b/modules/services/gitea/default.nix @@ -37,10 +37,14 @@ in { }; }; - my.services.nginx.virtualHosts = [{ - subdomain = "gitea"; - port = 8002; - }]; + services.nginx.virtualHosts."git.fcuny.net" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://127.0.0.1:8002"; + proxyWebsockets = true; + }; + }; my.services.backup = { paths = [ cfg.stateDir ]; }; }; |