Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Commit 91bbcd4

Browse files
committed
fix: mail domain, indexing options, disable org creation
1 parent 2998b28 commit 91bbcd4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

modules/nixos/auxolotl/services/forge/default.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ in {
5252
ENABLED = true;
5353
FROM = "git@${cfg.domain}";
5454
PROTOCOL = "smtps";
55-
SMTP_ADDR = "smtp.${cfg.domain}";
55+
SMTP_ADDR = "smtp.mailgun.org";
5656
SMTP_PORT = 465;
5757
USER = "git@${cfg.domain}";
5858
};
@@ -62,10 +62,12 @@ in {
6262
REGISTER_EMAIL_CONFIRM = true;
6363
ENABLE_NOTIFY_MAIL = true;
6464
DISABLE_REGISTRATION = false;
65+
DEFAULT_ALLOW_CREATE_ORGANIZATION = false;
6566
};
6667
server = {
6768
DOMAIN = "${cfg.subdomain}.${cfg.domain}";
6869
HTTP_PORT = cfg.port;
70+
ROOT_URL = "https://${cfg.subdomain}.${cfg.domain}";
6971
};
7072
repository = {
7173
ENABLE_PUSH_CREATE_USER = true;
@@ -75,9 +77,7 @@ in {
7577
INSTALL_LOCK = true;
7678
};
7779
indexer = {
78-
REPLO_INDEXER_ENABLED = true;
79-
UPDATE_BUFFER_LEN = 20;
80-
MAX_FILE_SIZE = 1048576;
80+
REPO_INDEXER_ENABLED = true;
8181
};
8282
session = {
8383
PROVIDER = "db";
@@ -96,6 +96,9 @@ in {
9696

9797
virtualHosts = {
9898
"${cfg.subdomain}.${cfg.domain}" = {
99+
forceSSL = true;
100+
enableACME = true;
101+
99102
locations = {
100103
"/" = {
101104
proxyPass = "http://localhost:${builtins.toString cfg.port}";

0 commit comments

Comments
 (0)