modules: services: gitea: migrate settings
Most of the settings are now RFC-42 compliant.
This commit is contained in:
parent
f47ac78370
commit
d8c841333b
|
@ -56,9 +56,6 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
appName = "Ambroisie's forge";
|
appName = "Ambroisie's forge";
|
||||||
httpPort = cfg.port;
|
|
||||||
domain = giteaDomain;
|
|
||||||
rootUrl = "https://${giteaDomain}";
|
|
||||||
|
|
||||||
user = "git";
|
user = "git";
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
|
@ -78,6 +75,12 @@ in
|
||||||
mailerPasswordFile = lib.mkIf cfg.mail.enable cfg.mail.passwordFile;
|
mailerPasswordFile = lib.mkIf cfg.mail.enable cfg.mail.passwordFile;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
server = {
|
||||||
|
HTTP_PORT = cfg.port;
|
||||||
|
DOMAIN = giteaDomain;
|
||||||
|
ROOT_URL = "https://${giteaDomain}";
|
||||||
|
};
|
||||||
|
|
||||||
mailer = lib.mkIf cfg.mail.enable {
|
mailer = lib.mkIf cfg.mail.enable {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
HOST = cfg.mail.host;
|
HOST = cfg.mail.host;
|
||||||
|
@ -121,7 +124,7 @@ in
|
||||||
# Redirect `gitea.` to actual forge subdomain
|
# Redirect `gitea.` to actual forge subdomain
|
||||||
{
|
{
|
||||||
subdomain = "gitea";
|
subdomain = "gitea";
|
||||||
redirect = config.services.gitea.rootUrl;
|
redirect = config.services.gitea.settings.server.ROOT_URL;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue