- Notifications
You must be signed in to change notification settings - Fork3.1k
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Specifically, for my Vaultwarden container, I want to restrict access to the |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
You don't needVIRTUAL_PATHs indeed. Sorry thePer-VIRTUAL_HOST settings is what you need.
For example, if you have a virtual host named app.example.com, you could provide a custom configuration for that host as follows:
create your virtual host config file:
# content of the app.example.com filelocation /admin { # Restrict access to only some IP (LAN IP & VPN) allow 172.16.0.0/12; deny all;}mount it to/etc/nginx/vhost.d/app.example.com
Check the Docker Compose File example in the linked documentation how to mount this file in your container.
This will automatically include your config with /admin location as an additional location block.
Replies: 1 comment 3 replies
-
That is in the docs:Per-VIRTUAL_PATH location configuration |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
How many For my one, single container, I want the |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
You don't need For example, if you have a virtual host named app.example.com, you could provide a custom configuration for that host as follows: create your virtual host config file: mount it to |
BetaWas this translation helpful?Give feedback.
All reactions
-
I am interested in the same question. Did you come up with a good solution@beechfuzz ? |
BetaWas this translation helpful?Give feedback.