update gitea module

This commit is contained in:
Dmitriy Kholkin 2023-06-13 04:23:54 +03:00
parent 891dfd766e
commit f6a2458796

View File

@ -23,21 +23,22 @@ in {
type = "postgres"; type = "postgres";
passwordFile = config.secrets.gitea.decrypted; passwordFile = config.secrets.gitea.decrypted;
}; };
# TODO: cleanup dumps older than...
dump = { dump = {
enable = true; enable = true;
backupDir = "/srv/gitea/dump"; backupDir = "/srv/gitea/dump";
interval = "06:00"; interval = "06:00";
type = "tar.zst"; type = "tar.zst";
}; };
domain = "code.ataraxiadev.com";
httpAddress = "127.0.0.1";
httpPort = 6000;
lfs.enable = true; lfs.enable = true;
rootUrl = "https://code.ataraxiadev.com";
stateDir = "/srv/gitea/data"; stateDir = "/srv/gitea/data";
mailerPasswordFile = config.secrets.gitea-mailer.decrypted; mailerPasswordFile = config.secrets.gitea-mailer.decrypted;
settings = { settings = {
server = {
DOMAIN = "code.ataraxiadev.com";
HTTP_ADDRESS = "127.0.0.1";
HTTP_PORT = 6000;
ROOT_URL = "https://code.ataraxiadev.com";
};
api = { api = {
ENABLE_SWAGGER = false; ENABLE_SWAGGER = false;
}; };
@ -52,7 +53,9 @@ in {
USER = "gitea@ataraxiadev.com"; USER = "gitea@ataraxiadev.com";
}; };
migrations = { migrations = {
ALLOWED_DOMAINS = "github.com, *.github.com, gitlab.com, *.gitlab.com"; ALLOW_LOCALNETWORKS = true;
# ALLOWED_DOMAINS = "github.com, *.github.com, gitlab.com, *.gitlab.com, notabug.com, *.notabug.com";
ALLOWED_DOMAINS = "";
}; };
packages = { packages = {
ENABLED = false; ENABLED = false;
@ -111,4 +114,4 @@ in {
-mindepth 1 -type f -mtime +${older-than} -delete -mindepth 1 -type f -mtime +${older-than} -delete
''; '';
}; };
} }