docker installation with nginx reverse proxy #107
Unanswered
carlomigliorini
asked this question in
Help
Replies: 1 comment
-
|
the issue is docker networking. changing to 0.0.0.0 is correct but you also need to make sure the ports are exposed properly. check your docker-compose or docker run command:
ports:
- "443:443"
- "80:80"
services:
sync-in:
image: sync-in
networks:
- proxy-network
# no ports needed if nginx is in same network
nginx:
image: nginx
ports:
- "443:443"
- "80:80"
networks:
- proxy-network
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
networks:
proxy-network:
server {
listen 443 ssl;
server_name your-domain.com;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location / {
proxy_pass http://sync-in:PORT; # use container name
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;
}
}
docker exec sync-in-container netstat -tlnp
docker exec nginx curl http://sync-in:PORTshare your docker-compose.yml and nginx config if still not working. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
i have installated sync-in on docker according to the documentation. The https does not work, I have seen the log and the sync-in server listen to 127.0.0.1. I guess it should have been 0.0.0.0. I have extracted main.js from the docker, i have changed the port from 127.0.0.1 to 0.0.0.0, now sync-in listen to 0.0.0.0 but it does not work anyway. Any suggestion ?.
sync-in_log.txt
Thanks a lot into advance
Carlo
Beta Was this translation helpful? Give feedback.
All reactions