File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,13 @@ server {
6262 # enable for Authentik (requires authentik-server.conf in the server block)
6363 #include /config/nginx/authentik-location.conf;
6464
65+ # if you enable admin page via ADMIN_TOKEN env variable
66+ # consider restricting access to LAN only via uncommenting the following lines
67+ #allow 10.0.0.0/8;
68+ #allow 172.16.0.0/12;
69+ #allow 192.168.0.0/16;
70+ #deny all;
71+
6572 include /config/nginx/proxy.conf;
6673 include /config/nginx/resolver.conf;
6774 set $upstream_app vaultwarden;
Original file line number Diff line number Diff line change @@ -49,6 +49,13 @@ location ~ ^(/vaultwarden)?/admin {
4949 # enable for Authentik (requires authentik-server.conf in the server block)
5050 #include /config/nginx/authentik-location.conf;
5151
52+ # if you enable admin page via ADMIN_TOKEN env variable
53+ # consider restricting access to LAN only via uncommenting the following lines
54+ #allow 10.0.0.0/8;
55+ #allow 172.16.0.0/12;
56+ #allow 192.168.0.0/16;
57+ #deny all;
58+
5259 include /config/nginx/proxy.conf;
5360 include /config/nginx/resolver.conf;
5461 set $upstream_app vaultwarden;
You can’t perform that action at this time.
0 commit comments