gitea #8
2 changed files with 8 additions and 1 deletions
|
@ -51,7 +51,7 @@ in
|
||||||
domain = "nix-git.pleshevski.ru";
|
domain = "nix-git.pleshevski.ru";
|
||||||
rootUrl = "https://nix-git.pleshevski.ru";
|
rootUrl = "https://nix-git.pleshevski.ru";
|
||||||
appName = "Pleshevskiy Git Repositories";
|
appName = "Pleshevskiy Git Repositories";
|
||||||
mailerPasswordFile = config.age.secrets.mailserver-users-jan-passfile.path;
|
mailerPasswordFile = config.age.secrets.gitea-mailserver-passfile.path;
|
||||||
database = {
|
database = {
|
||||||
type = "postgres";
|
type = "postgres";
|
||||||
host = "/run/postgresql";
|
host = "/run/postgresql";
|
||||||
|
@ -129,9 +129,16 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
services.nginx.virtualHosts."nix-git.pleshevski.ru" = {
|
services.nginx.virtualHosts."nix-git.pleshevski.ru" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".proxyPass = "http://localhost:${toString config.services.gitea.httpPort}/";
|
locations."/".proxyPass = "http://localhost:${toString config.services.gitea.httpPort}/";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
age.secrets.gitea-mailserver-passfile = {
|
||||||
|
file = ../../secrets/mailserver-users-jan-passfile.age;
|
||||||
|
owner = config.services.gitea.user;
|
||||||
|
group = "gitea";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue