Replies: 2 comments 4 replies
-
Why not use Nginx Proxy Manager (NPM)? Then you don’t need a script to make the necessary changes to reverse proxy. https://www.blackvoid.club/nginx-proxy-manager/ |
Beta Was this translation helpful? Give feedback.
-
Hello @BobWs I read the two links you gave, and Ok NPM may be more easy than I thought... My message here was more about adding the following lines into the nginx proxy examples 😀 # Restrict access to only some IP (LAN IP & VPN)
allow 192.168.2.0/24;
allow 192.168.10.0/24;
allow 192.168.11.0/24;
deny all; |
Beta Was this translation helpful? Give feedback.
-
Hello,
With the 1.25.1 version of Vaultwarden, my script to enable websocket notifications wasn't working anymore because of some lack of
proxy_set_header
in my configuration file.I do some research with the wiki, and I have come to change some proxy_set_header according to the wiki.
Some explanations first
First I have to explain my particular configuration of Vaultwarden.
I installed it in docker, on my Synology NAS.
I use a domain name, with a valid certificate, so in HTTPS in order to use 2FA for login.
I also use the reverse proxy of DSM to serve my services with various domain names like :
The reverse proxy is base on NGINX, but we don't have access to it easily. It needs SSH to the NAS.
In order to get the WebSocket Notifications working, I have to launch a bash script searching in the
server.ReverseProxy.conf
the server line corresponding to my Vaultwarden domain name, and it adds a lineinclude /etc/nginx/websocket.locations.vaultwarden;
.This
websocket.locations.vaultwarden
file contain now this :Restricting the access to admin panel ton IP LAN and VPN
As you can see in the previous websocket.locations.vaultwarden file, all is correct corresponding to the wiki page : proxy-examples, except for the allow / deny lines I add.
I add those lines to allow only the LAN IP & VPN I use, and deny all others.
Note for some like me : restart NGONX service after mofiying the websocket.locations.vaultwarden file 😵
My suggestion
Can you add this to the wiki ? It could be a bonus to the security of the admin panel.
Thanks for reading all the message 😄
PS : if someone want to see the script doing all the modification, I can put it here, but it's in French.
Beta Was this translation helpful? Give feedback.
All reactions