Question: Adding location per server to serve static file. #2241
Replies: 5 comments
-
Location per server i could do, my other need is to use multiples locations to different containers. |
Beta Was this translation helpful? Give feedback.
-
Mind sharing your configuration? |
Beta Was this translation helpful? Give feedback.
-
I just extended this image with:
Then, you can just use a HOST_LOCATION env on target containers and enjoy. =D |
Beta Was this translation helpful? Give feedback.
-
@arturluizbr, can you please share how to use your extension to configure static content location? Thax |
Beta Was this translation helpful? Give feedback.
-
@cloud-rocket iguess i didn't read that static content part. What I did was to use a custom locations instead or root, probably in future i may need few customizations, if so, i'll make a pull request here. =D |
Beta Was this translation helpful? Give feedback.
-
I have an idea how to do it in nginx, just confused on how can i do it using docker-gen.
I have tried using Per-VIRTUAL_HOST default configuration, but doing so replaces the default configuration like servername etc. and only creating the one i wrote.
Beta Was this translation helpful? Give feedback.
All reactions