{ config, ... }: let domain = "git.cloonar.com"; in { services.nginx.virtualHosts."${domain}" = { enableACME = true; forceSSL = true; locations."/" = { proxyPass = "http://localhost:3001/"; }; }; services.gitea = { enable = true; appName = "Cloonar Gitea server"; # Give the site a name domain = domain; rootUrl = "https://${domain}/"; httpPort = 3001; settings = { service.DISABLE_REGISTRATION = true; webhook.ALLOWED_HOST_LIST = "drone.cloonar.com"; }; }; }