renge/gitea: Migrate to 22.11 options
This commit is contained in:
parent
a445953d46
commit
60577ad4ea
|
@ -14,15 +14,10 @@ in
|
||||||
|
|
||||||
rootUrl = "https://git.sbruder.de/";
|
rootUrl = "https://git.sbruder.de/";
|
||||||
appName = "sbrudergit";
|
appName = "sbrudergit";
|
||||||
cookieSecure = true;
|
|
||||||
log.level = "Warn";
|
|
||||||
lfs = {
|
lfs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
enableUnixSocket = true;
|
enableUnixSocket = true;
|
||||||
ssh = {
|
|
||||||
clonePort = 2022;
|
|
||||||
};
|
|
||||||
database.type = "postgres";
|
database.type = "postgres";
|
||||||
mailerPasswordFile = config.sops.secrets.gitea-mail.path;
|
mailerPasswordFile = config.sops.secrets.gitea-mail.path;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -43,6 +38,7 @@ in
|
||||||
# internal ssh server
|
# internal ssh server
|
||||||
BUILTIN_SSH_SERVER_USER = "git";
|
BUILTIN_SSH_SERVER_USER = "git";
|
||||||
START_SSH_SERVER = true;
|
START_SSH_SERVER = true;
|
||||||
|
SSH_PORT = 2022;
|
||||||
SSH_SERVER_HOST_KEYS = "ssh/gitea.ed25519,ssh/gitea.rsa";
|
SSH_SERVER_HOST_KEYS = "ssh/gitea.ed25519,ssh/gitea.rsa";
|
||||||
};
|
};
|
||||||
service = {
|
service = {
|
||||||
|
@ -53,11 +49,15 @@ in
|
||||||
};
|
};
|
||||||
session = {
|
session = {
|
||||||
PROVIDER = "file";
|
PROVIDER = "file";
|
||||||
|
COOKIE_SECURE = true;
|
||||||
|
};
|
||||||
|
log = {
|
||||||
|
LEVEL = "Warn";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ cfg.ssh.clonePort ];
|
networking.firewall.allowedTCPPorts = [ cfg.settings.server.SSH_PORT ];
|
||||||
|
|
||||||
services.nginx.virtualHosts."git.sbruder.de" = {
|
services.nginx.virtualHosts."git.sbruder.de" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
Loading…
Reference in a new issue