diff --git a/hosts/hosting-01/default.nix b/hosts/hosting-01/default.nix index e061474..1ddec9b 100644 --- a/hosts/hosting-01/default.nix +++ b/hosts/hosting-01/default.nix @@ -139,6 +139,23 @@ in }; }; + services.atuin = { + enable = true; + openRegistration = true; + database = { + uri = "postgresql://atuin@db-01.tailnet.escapeangle.com:5432/atuin"; + createLocally = false; + }; + }; + + services.nginx.virtualHosts."atuin.escapeangle.com" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:${toString config.services.atuin.port}"; + }; + }; + security.acme.defaults.email = "landervandenbulcke@gmail.com"; security.acme.acceptTerms = true;