diff options
Diffstat (limited to 'hostnix/elmo/git.nix')
| -rw-r--r-- | hostnix/elmo/git.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hostnix/elmo/git.nix b/hostnix/elmo/git.nix new file mode 100644 index 0000000..c032b5d --- /dev/null +++ b/hostnix/elmo/git.nix @@ -0,0 +1,23 @@ +{ ... }: + +{ + services.gitea = { + enable = true; + settings = { + server = { + ROOT_URL = "https://git.mou.fo/"; + PROTOCOL = "http+unix"; + DISABLE_REGISTRATION = true; + }; + session = { + COOKIE_SECURE = true; + }; + }; + }; + + services.nginx.virtualHosts."git.mou.fo" = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://unix:/run/gitea/gitea.sock"; + }; +} |
