diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-09-16 02:07:57 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-09-16 02:07:57 +0300 |
commit | d58f6d509cd81c6c21739f3bf0fcec7fa623ee9f (patch) | |
tree | f8742617b495d478cc8c9b2c1f200e143f2c1d28 /modules/nixos/vaultwarden.nix | |
parent | 2023-08-23 (diff) |
2023-09-16
Diffstat (limited to 'modules/nixos/vaultwarden.nix')
-rw-r--r-- | modules/nixos/vaultwarden.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/nixos/vaultwarden.nix b/modules/nixos/vaultwarden.nix index 2aaecf2..5046c7e 100644 --- a/modules/nixos/vaultwarden.nix +++ b/modules/nixos/vaultwarden.nix @@ -36,16 +36,16 @@ in { vaultwarden_rocket.servers."${ROCKET_ADDRESS}:${toString ROCKET_PORT}" = {}; vaultwarden_websocket.servers."${WEBSOCKET_ADDRESS}:${toString WEBSOCKET_PORT}" = {}; }; - virtualHosts.${cfg.domain} = { - locations."/" = { + virtualHosts.${cfg.domain}.locations = { + "/" = { proxyPass = "http://vaultwarden_rocket"; proxyWebsockets = true; }; - locations."/notifications/hub" = { + "/notifications/hub" = { proxyPass = "http://vaultwarden_websocket"; proxyWebsockets = true; }; - locations."/notifications/hub/negotiate" = { + "/notifications/hub/negotiate" = { proxyPass = "http://vaultwarden_rocket"; proxyWebsockets = true; }; |