Error 502 Bad Gateway with NPM (nginx proxy manager) #2029
-
Shlink versionlatest docker PHP versionlatest on docker How do you serve ShlinkDocker image Database engineMariaDB Database versionmariadb:latest Current behaviorI get
error when trying to access a shortened URL (that I made accessing the As well as when trying to access the url. Docker compose file:
On nginx proxy manager (docker:latest):
Router and firewall port open. I used a subdomain because the Logs don't seem to indicate anything relevant to this?:
Expected behaviorBeing able to access it from the https URL How to reproduceUsing docker shlink and docker NPM with shown configs. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Please, try not to report bugs for things that are clearly configuration issues. Opening a discussion is preferred in that case. |
Beta Was this translation helpful? Give feedback.
-
I would check the reverse proxy logs, as that will probably have more information about what is causing those 502 errors. Most probably, the reverse proxy is not configured to forward traffic to the right place, specially taking into consideration that shlink-web-client is working when bypassing the reverse proxy via |
Beta Was this translation helpful? Give feedback.
Now, once solved the issue of me being dumb, both using docker internal networks and referring the container name or not using docker networks and pointing to regular local IP address.
Here are my working compose files and NPM config, in case it helps someone in the future (or if you consider useful to add as compose file examples for the documentation):
shlink compose: