Vaultwarden: Difference between revisions

Chiborg (talk | contribs)
Update SMTP environment names to match newest version. Proxy websockets
Ftvkyo (talk | contribs)
m fix nginx config typo
Tags: Mobile edit Mobile web edit Visual edit
 
(One intermediate revision by one other user not shown)
Line 42: Line 42:
'';</syntaxhighlight>
'';</syntaxhighlight>
=== Nginx ===
=== Nginx ===
<syntaxHighlight lang=nix>
<syntaxhighlight lang="nix">
services.nginx.virtualHosts."bitwarden.example.com" = {
services.nginx.virtualHosts."bitwarden.example.com" = {
     enableACME = true;
     enableACME = true;
Line 48: Line 48:
     locations."/" = {
     locations."/" = {
         proxyPass = "http://127.0.0.1:${toString config.services.vaultwarden.config.ROCKET_PORT}";
         proxyPass = "http://127.0.0.1:${toString config.services.vaultwarden.config.ROCKET_PORT}";
         proxyWebSockets = true;
         proxyWebsockets = true;
     };
     };
};
};
'';
</syntaxhighlight>
</syntaxHighlight>