diff --git a/forgejo.nix b/forgejo.nix index 4203e27..395d469 100644 --- a/forgejo.nix +++ b/forgejo.nix @@ -1,5 +1,6 @@ { lib, pkgs, config, ... }: let + domain = "forge.tiqa.fr"; srv = config.services.forgejo.settings.server; in { @@ -7,7 +8,7 @@ in enable = true; recommendedGzipSettings = true; - virtualHosts.${config.services.forgejo.settings.server.DOMAIN} = { + virtualHosts.${domain} = { forceSSL = true; enableACME = true; extraConfig = '' @@ -32,9 +33,9 @@ in lfs.enable = true; settings = { server = { - DOMAIN = "forge.tiqa.fr"; + DOMAIN = domain; # You need to specify this to remove the port from URLs in the web UI. - ROOT_URL = "https://${srv.DOMAIN}/"; + ROOT_URL = "https://${domain}/"; HTTP_PORT = 3000; }; # You can temporarily allow registration to create an admin user.