diff --git a/profiles/servers/gitea.nix b/profiles/servers/gitea.nix new file mode 100644 index 0000000..87e714b --- /dev/null +++ b/profiles/servers/gitea.nix @@ -0,0 +1,26 @@ +{ pkgs, config, lib, ... }: +{ + secrets.gitea = { + owner = "gitea"; + }; + + services.gitea = { + enable = true; + appName = "AtaraxiaDev Gitea Instance"; + cookieSecure = true; + database = { + type = "postgres"; + passwordFile = config.secrets.gitea.decrypted; + }; + disableRegistration = true; + domain = "code.ataraxiadev.com"; + httpPort = 6000; + lfs.enable = true; + rootUrl = "https://code.ataraxiadev.com"; + settings = { + server = { + SSH_DOMAIN = "gitea.ataraxiadev.com"; + }; + }; + }; +} diff --git a/profiles/servers/nginx.nix b/profiles/servers/nginx.nix index 9d50b37..fe0e85b 100644 --- a/profiles/servers/nginx.nix +++ b/profiles/servers/nginx.nix @@ -104,11 +104,16 @@ ''; locations."/mautrix-telegram/" = { proxyPass = "http://localhost:29317"; - }; + }; locations."/_matrix" = { proxyPass = "http://localhost:13748"; }; } // default; + "code.ataraxiadev.com" = { + locations."/" = { + proxyPass = "http://localhost:6000"; + }; + } // default; }; }; } \ No newline at end of file diff --git a/roles/server.nix b/roles/server.nix index a57db95..e55a06c 100644 --- a/roles/server.nix +++ b/roles/server.nix @@ -10,6 +10,7 @@ kitty coturn + gitea mailserver matrix-synapse nginx