Skip to content

Add extra location to nginx-s3-gateway image #189

Answered by 4141done
MuriloCouceiro asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @MuriloCouceiro ! Sorry for the delay. You are correct that in my example gist the contents of s3_server.conf are being overwritten when the normal docker entrypoint is used.

The reason for this is that the gateway project takes the files in /etc/nginx/templates, runs envsubst on them at startup, and outputs the files to /etc/nginx/conf.d.

In my gist, I mistakenly put the file in /etc/nginx/conf.d/gateway while was overwritten by that process. Apologies for the bad initial answer. I am still learning as a maintainer on this project 🙏 .

So here's a new solution that I've tested.

  1. Place your modified file in etc/nginx/templates/gateway/s3_server.conf.template (it can be anywhere but I fi…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@4141done
Comment options

@MuriloCouceiro
Comment options

@MuriloCouceiro
Comment options

@4141done
Comment options

Answer selected by MuriloCouceiro
@MuriloCouceiro
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants