I found this post, which seems to be similar to my intentions.
If I would like to have a “Main Nginx instance” before the “Seafile docker instance”.
The Main nginx Instance would then redirect to the Seafile docker image. Should the config file of the Main Nginx look like this?
Also considering https and port 443?
server {
listen 80;
server_name cloud.domain.com;
location / {
proxy_pass **localhost**:8001;
proxy_set_header Host $http_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;
}
}
And how would the docker-compose.yml file have to look like?
The manual describes
ports:
- “8001:80”
Would it need to be
ports:
- “8001:80”
- “8001:443”
?
Thanks so much for helping me