Thats my nginx proxy server, on /etc/nginx/sites-available
with a simbolic link on /etc/nginx/sites-enabled
, it even could be in another server, there is where I redirect the trafic from kf.xxx.com kc.xxx.com ee.xxx.com
to the serverip:8080
, server ip could be 10.0.0.25, so the configuration could be like:
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://10.0.0.25:8080$request_uri;
proxy_read_timeout 90;
}
Then the internal port used for reverse proxy is set as 8080 when you setup the application. I would recommend to not modify containers files.