-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User deploys with their own nginx.config
#10
Comments
This will not be going into the 1.0.0 release as adding the ability to specify your own port in your NGINX file will have to be synced with the systemd file that's already on the server. This work hasn't been planned yet. |
Right now there is no option to specify a custom port as the initial deploy task looks up an open port. Though this is nice for the easiest kind of deployment, this leads to problems like described above. I think it would be good to have a config option for the port so this can be set before the initial deployment. The init script would then use the custom port and the nginx.conf could be provided by the user. |
Hey guys - especially @mrmicahcooper - thanks for your great work! I am currently (re)evaluating my Phoenix deployment process and it is nice to have a (leightweight) alternative to edeliver that I used for my first projects. What keeps me from considering gatling is that I need to have a rather sophisticated nginx.conf in place (SSL termination, static file hosting, ...). I do not see how I could get this to work without setting a custom port for my application. Is it possible to set the port after the initial deployment, or is this generated on every deploy? |
@denic I migrated to a full custom nginx.conf with SSL recently. Here's how you do it:
There isn't anything more to it. Once Gatling has deployed it it won't touch the config anymore – same goes with the port, so you can safely do it this way. Hope this helps. |
@dennisreimann That is the answer I hoped for. Thanks! m(_ _)m |
@denic I have also written up a detailed article about Configuring NGINX for Phoenix applications. Hope it helps :) |
User adds a file to the root of their project named
./nginx.conf
On a deploy:
If
nginx.conf
The text was updated successfully, but these errors were encountered: