Vaultwarden: Difference between revisions
Update SMTP environment names to match newest version. Proxy websockets |
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"> | ||
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; | |||
}; | }; | ||
}; | }; | ||
</syntaxhighlight> | |||
</ | |||