proxy_set_header X-Forwarded-Proto $scheme;
2024-12-10proxy_set_header X-Forwarded-Proto $scheme;
https代理http
server {
listen 443 ssl;
server_name your-domain.com;
ssl_certificate /path/to/ssl/certificate.pem;
ssl_certificate_key /path/to/ssl/private/key.pem;
return 301 http://$server_name$request_uri;
}