Skip to content

How to persist nginx.conf changes after update? #8028

Answered by MartinPicc
JayP718 asked this question in Help
Discussion options

You must be logged in to vote

Hi

nginx.conf is generated via a template that you can find in bbproxy service /etc/nginx/templates/nginx.conf.template.
So you can try to

  • launch docker-compose
  • open a shell into bbproxy service
  • copy the content of this file
  • paste it into a local file
  • make your modifications into your local file
  • bind the local file as a volume in your docker-compose like so:
    volumes:
      - /path/to/nginx.conf.template:/etc/nginx/templates/nginx.conf.template

And then restart. The changes you did to the template should appear in the nignx.conf file

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JayP718
Comment options

@JayP718
Comment options

Answer selected by JayP718
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants