Orthanc as a cloud pacs

hello @bcrickboom @alainmazy

I followed your PDF documentation for the conference as regards deploying orthanc on cloud. am currently deploying on cloud with OCI.

however, I kept having the 502 Bad Gateway… nginx is running, ssl is enabled as well as the docker containers . ufw status is enabled to allow traffic. below is my config for nginx.

server {

    server_name techxploit.com.ng www.techxploit.com.ng;

    location / {
            proxy_pass http://127.0.0.1:8080;
    }

listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/techxploit.com.ng/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/techxploit.com.ng/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
if ($host = www.techxploit.com.ng) {
return 301 https://$host$request_uri;
} # managed by Certbot

if ($host = techxploit.com.ng) {
    return 301 https://$host$request_uri;
} # managed by Certbot


    listen 80;
    listen [::]:80;

    server_name techxploit.com.ng www.techxploit.com.ng;
return 404; # managed by Certbot

}

502 page

docker containers

your help will be greatly appreciated.

Hello, in a Docker container, 127.0.0.1 refers to the container itself, not the host. So, if you use proxy_pass to point to 127.0.0.1 in Nginx configuration, then Nginx will try to find the corresponding service inside the container, not on the host

Hello @Mars456

Have been able to resolve this thou. Thanks anyways

Olakunle