properly set up nginx for bitwarden

This commit is contained in:
Ingolf Wagner 2022-01-29 19:39:57 +01:00
parent f16f201c29
commit adc6487ae0
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -9,5 +9,24 @@
rocketLog = "critical"; rocketLog = "critical";
}; };
}; };
#backup.dirs = [ "/var/lib/bitwarden_rs" ];
backup.dirs = [ "/var/lib/bitwarden_rs" ];
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"bitwarden.ingolf-wagner.de" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${
toString config.services.vaultwarden.config.rocketPort
}";
};
};
};
};
} }