Update modules/default.nix modules/gitea.nix modules/nginx.nix

This commit is contained in:
Alexander Bantyev 2020-03-26 13:05:12 +03:00
parent 4024f7e86c
commit d7fa0b014f
3 changed files with 15 additions and 8 deletions

View File

@ -42,5 +42,6 @@ device:
./workspace/kanshi.nix
./openvpn.nix
./nginx.nix
./gitea.nix
];
}

12
modules/gitea.nix Normal file
View File

@ -0,0 +1,12 @@
{ pkgs, config, lib, ... }:
{
services.gitea = {
enable = true;
appName = "code.balsoft.ru";
cookieSecure = true;
rootUrl = "https://code.balsoft.ru";
domain = "code.balsoft.ru";
httpPort = 6000;
# disableRegistration = true;
};
}

View File

@ -16,14 +16,8 @@
enableACME = true;
addSSL = true;
};
"corona.balsoft.ru" = {
locations."/" = {
root = "/var/lib/corona";
index = "index.html";
extraConfig = ''
add_header 'Access-Control-Allow-Origin' '*';
'';
};
"code.balsoft.ru" = {
locations."/" = { proxyPass = "http://localhost:6000"; };
} // default;
"cache.balsoft.ru" = {
locations."/" = { proxyPass = "http://localhost:5000"; };