From e1cd5994e506b79105f470e6ea60ad268fdcae1f Mon Sep 17 00:00:00 2001 From: Jake Hamilton Date: Tue, 21 May 2024 14:18:48 -0700 Subject: [PATCH] fix: mail domain, indexing options, disable org creation --- modules/nixos/auxolotl/services/forge/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/nixos/auxolotl/services/forge/default.nix b/modules/nixos/auxolotl/services/forge/default.nix index 2c65a6c..2528394 100644 --- a/modules/nixos/auxolotl/services/forge/default.nix +++ b/modules/nixos/auxolotl/services/forge/default.nix @@ -52,7 +52,7 @@ in { ENABLED = true; FROM = "git@${cfg.domain}"; PROTOCOL = "smtps"; - SMTP_ADDR = "smtp.${cfg.domain}"; + SMTP_ADDR = "smtp.mailgun.org"; SMTP_PORT = 465; USER = "git@${cfg.domain}"; }; @@ -62,10 +62,12 @@ in { REGISTER_EMAIL_CONFIRM = true; ENABLE_NOTIFY_MAIL = true; DISABLE_REGISTRATION = false; + DEFAULT_ALLOW_CREATE_ORGANIZATION = false; }; server = { DOMAIN = "${cfg.subdomain}.${cfg.domain}"; HTTP_PORT = cfg.port; + ROOT_URL = "https://${cfg.subdomain}.${cfg.domain}"; }; repository = { ENABLE_PUSH_CREATE_USER = true; @@ -75,9 +77,7 @@ in { INSTALL_LOCK = true; }; indexer = { - REPLO_INDEXER_ENABLED = true; - UPDATE_BUFFER_LEN = 20; - MAX_FILE_SIZE = 1048576; + REPO_INDEXER_ENABLED = true; }; session = { PROVIDER = "db"; @@ -96,6 +96,9 @@ in { virtualHosts = { "${cfg.subdomain}.${cfg.domain}" = { + forceSSL = true; + enableACME = true; + locations = { "/" = { proxyPass = "http://localhost:${builtins.toString cfg.port}";