itsuite wrote:Hey there I'm facing the same problem with Nginx (Linux), does someone solved it ?
Sometimes it worked when I cleared the cache, but now event this does not help.
server {
listen 80;
server_name xxx.xxx.xxx.xxx;
return 301 https://<yourdomain.com>$request_uri;
}
server {
listen 443 ssl;
server_name xxx.xxx.xxx.xxx;
ssl_certificate /etc/letsencrypt/live/<yourdomain.com>/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/<yourdomain.com>/privkey.pem; # managed by Certbot
return 301 https://<yourdomain.com>$request_uri;
}
server {
server_name <yourdomain.com>;
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/<yourdomain.com>/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/<yourdomain.com>/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
}