0

when I enter my domain it shows the port at the end of it and the SSL is not working altought I've set it up with certbot, verified domain with txt file and the keys are in the right location.

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name MYWEBSITE.co.uk;

    ssl_certificate /etc/letsencrypt/live/MYWEBSITE/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/MYWEBSITE/privkey.pem;
    ssl_session_cache shared:SSL:10m;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
    ssl_prefer_server_ciphers on;
    

    location / {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-NginX-Proxy true;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_pass http://localhost:6969;
        proxy_ssl_session_reuse off;
        proxy_set_header Host $http_host;
        proxy_pass_header Server;
        proxy_cache_bypass $http_upgrade;
        proxy_redirect off;
    }
}

I'm trying to launch nginx website through pterodactyl panel.

cFunkz
  • 1
  • 1

0 Answers0