Question
nginx conf for dokku was overwritten
In the process of installing dokku plugins (dokku plugins-install
), I accidentally overwrite the nginx.conf file. As a result, all of my apps are returning a 502 Bad Gateway
error.
Is there a way for me to fix this/ restore the original config?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Remove /etc/nginx/conf.d/dokku.conf and run /var/lib/dokku/plugins/nginx-vhosts/install
If you’re talking about application specific nginx.conf - just re-deploy it (by setting a config var for an instance)
Thanks Puck, I just did that and got this error. Any thought?
So I was able to solve the problem I had by running a simple command before reinstall the plugin.