feat: add gitea server

This commit is contained in:
Laureηt 2023-03-14 13:33:48 +01:00
parent edd8c604db
commit 5274195563
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -144,6 +144,25 @@
environment.systemPackages = with pkgs; [ htop ];
services.gitea = {
enable = true;
domain = "git.fainsin.bzh";
rootUrl = "https://git.fainsin.bzh";
lfs.enable = true;
database.type = "postgres";
settings = {
service = {
"DEFAULT_KEEP_EMAIL_PRIVATE" = true;
"DISABLE_REGISTRATION" = true;
};
server = { "LANDING_PAGE" = "explore"; };
session = {
"PROVIDER" = "db";
"COOKIE_SECURE" = true;
};
};
};
services.nginx = {
enable = true;
@ -171,6 +190,14 @@
forceSSL = true;
root = "/srv/www/";
};
"git.fainsin.bzh" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:3000/";
proxyWebsockets = true;
};
};
default = {
default = true;
locations."/".return = ''301 "$scheme://fainsin.bzh" '';