Add of pangolin client, fix roundcube and vaultwarden, refractor some bit
This commit is contained in:
parent
d4d7073344
commit
271115fc3a
7 changed files with 93 additions and 53 deletions
|
|
@ -6,30 +6,11 @@ lib.mkIf (config.networking.hostName == "ThinkCentre-Server-004"){
|
|||
|
||||
backupDir = "/var/local/vaultwarden/backup";
|
||||
|
||||
environmentFile = "/etc/vaultwarden.env";
|
||||
|
||||
config = {
|
||||
SIGNUPS_ALLOWED = true;
|
||||
ROCKET_PORT = 8222;
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
virtualHosts = {
|
||||
"${config.HostName}" = {
|
||||
listen = [{ addr = "0.0.0.0"; port = 8000; }];
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8222";
|
||||
extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8000 ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue