question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement rules for location /

See original GitHub issue

I 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:open
  • Created 4 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

1reaction
DominMudacommented, Jun 12, 2019

Just saw that my feature was implemented as a merge request but haven’t been merged so far. #1179

0reactions
jacktheripper19commented, Jun 20, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found