fix: mail domain, indexing options, disable org creation

This commit is contained in:
Jake Hamilton 2024-05-21 14:18:48 -07:00
parent a866a1d1aa
commit e1cd5994e5
Signed by: jakehamilton
GPG key ID: 9762169A1B35EA68

View file

@ -52,7 +52,7 @@ in {
ENABLED = true; ENABLED = true;
FROM = "git@${cfg.domain}"; FROM = "git@${cfg.domain}";
PROTOCOL = "smtps"; PROTOCOL = "smtps";
SMTP_ADDR = "smtp.${cfg.domain}"; SMTP_ADDR = "smtp.mailgun.org";
SMTP_PORT = 465; SMTP_PORT = 465;
USER = "git@${cfg.domain}"; USER = "git@${cfg.domain}";
}; };
@ -62,10 +62,12 @@ in {
REGISTER_EMAIL_CONFIRM = true; REGISTER_EMAIL_CONFIRM = true;
ENABLE_NOTIFY_MAIL = true; ENABLE_NOTIFY_MAIL = true;
DISABLE_REGISTRATION = false; DISABLE_REGISTRATION = false;
DEFAULT_ALLOW_CREATE_ORGANIZATION = false;
}; };
server = { server = {
DOMAIN = "${cfg.subdomain}.${cfg.domain}"; DOMAIN = "${cfg.subdomain}.${cfg.domain}";
HTTP_PORT = cfg.port; HTTP_PORT = cfg.port;
ROOT_URL = "https://${cfg.subdomain}.${cfg.domain}";
}; };
repository = { repository = {
ENABLE_PUSH_CREATE_USER = true; ENABLE_PUSH_CREATE_USER = true;
@ -75,9 +77,7 @@ in {
INSTALL_LOCK = true; INSTALL_LOCK = true;
}; };
indexer = { indexer = {
REPLO_INDEXER_ENABLED = true; REPO_INDEXER_ENABLED = true;
UPDATE_BUFFER_LEN = 20;
MAX_FILE_SIZE = 1048576;
}; };
session = { session = {
PROVIDER = "db"; PROVIDER = "db";
@ -96,6 +96,9 @@ in {
virtualHosts = { virtualHosts = {
"${cfg.subdomain}.${cfg.domain}" = { "${cfg.subdomain}.${cfg.domain}" = {
forceSSL = true;
enableACME = true;
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://localhost:${builtins.toString cfg.port}"; proxyPass = "http://localhost:${builtins.toString cfg.port}";