Skip to content
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

Can't find the port womginx is hosted on #136

Open
BMOTheGhost opened this issue Nov 10, 2022 · 1 comment
Open

Can't find the port womginx is hosted on #136

BMOTheGhost opened this issue Nov 10, 2022 · 1 comment

Comments

@BMOTheGhost
Copy link

Hey, I'm trying to change what port my womginx fork on replit is hosted on so I can possibly access any sites that have proxy blockers. I've been searching and honestly I don't have a very wide idea of how womginx & nginx work. Could somebody tell me if there even is a way to change the port, where to change it, and possibly create a config file for whoever is experienced with this program to change that stuff if there isn't already?

@CactusHamster
Copy link

Inside the http directive, just below where the server directive starts, in nginx.conf there is a line listen 80;. This tells nginx which port to listen on.
However, in docker-entrypoint.sh, the listen line gets edited to listen on, instead of port 80, whatever the value of the env variable/secret called PORT is. This is great for Heroku, but for Replit you may have to create a Secret called PORT yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants