Update modules/default.nix modules/gitea.nix modules/nginx.nix
This commit is contained in:
parent
4024f7e86c
commit
d7fa0b014f
@ -42,5 +42,6 @@ device:
|
||||
./workspace/kanshi.nix
|
||||
./openvpn.nix
|
||||
./nginx.nix
|
||||
./gitea.nix
|
||||
];
|
||||
}
|
||||
|
12
modules/gitea.nix
Normal file
12
modules/gitea.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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"; };
|
||||
|
Loading…
Reference in New Issue
Block a user