Implement rules for location /
See original GitHub issueI want to implement some custom nginx rules for location / but if I write this rule using vhost.de/domainname.conf I get that there are duplicate rules for / location, because this rule doesn’t replace the existing rule in default.conf, but adds instead.
I have been looking into plenty of ways to do this. I have overwritten the rule in default.conf myself and it works if I run
docker exec -it nginx-proxy nginx -s reload
Restarting the container will make my change get just lost since docker-gen reconstructs this “default.conf”. I think there is no current way to overwrite rules for / location. Is there any chance this gets implemented any time soon?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
Location Rules - green screen
To change a rule, simply type over the existing values, and press Enter . Select option 3 on the Network Security Main Menu...
Read more >Pick your business location
Your business location determines the taxes, zoning laws, and regulations ... Neighborhoods are generally zoned for either commercial or residential use.
Read more >Legal Guidelines For The Use Of Location Data On The Web
The two major laws governing the use of location data in the US are the Electronic Communications Privacy Act of 1986 and the...
Read more >Location Rules Definition
Location Rules means the rules determined by the Minister under section 99L of the Act. Sample 1. Based on 2 documents. 2.
Read more >What are location based rules and how do I use them?
Location based rules trigger actions based on the location of your smartphone. For example, when you move away from the location, the light...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just saw that my feature was implemented as a merge request but haven’t been merged so far. #1179
Until they merge the pull request that allows overriding location / , I just generate the default conf once when my containers are all up, then I comment the line dockergen: docker-gen -watch -notify “nginx -s reload” /app/nginx.tmpl /etc/nginx/conf.d/default.conf in /app/Procfile. This line is the one telling dockergen to override default.conf every restart. Now any modification to default.conf will not be overridden.