Vaultwarden: Difference between revisions

m add semicolon
Ftvkyo (talk | contribs)
m fix nginx config typo
Tags: Mobile edit Mobile web edit Visual edit
 
(2 intermediate revisions by one other user not shown)
Line 24: Line 24:
         SMTP_HOST = "127.0.0.1";
         SMTP_HOST = "127.0.0.1";
         SMTP_PORT = 25;
         SMTP_PORT = 25;
         SMTP_SSL = false;
         SMTP_SECURITY = off;


         SMTP_FROM = "admin@bitwarden.example.com";
         SMTP_FROM = "admin@bitwarden.example.com";
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;
     };
     };
};
};
'';
</syntaxhighlight>
</syntaxHighlight>