womginx icon indicating copy to clipboard operation
womginx copied to clipboard

Can't find the port womginx is hosted on

Open ibmoth opened this issue 3 years ago • 1 comments

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?

ibmoth avatar Nov 10 '22 19:11 ibmoth

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.

CactusHamster avatar Dec 06 '22 02:12 CactusHamster