如图所示
以下是管理的 Nginx 配置
server
{
listen 80;
server_name mydomain.com;
rewrite ^(.*)$ https://$host$1 permanent;
}
server
{
listen 443 ssl http2;
server_name mydomain.com;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
ssl_certificate /etc/nginx/ssl/mydomain.crt;
ssl_certificate_key /etc/nginx/ssl/mydomain.key;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
charset utf-8;
location / {
add_header Content-Security-Policy upgrade-insecure-requests;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
proxy_pass http://pipe$request_uri;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 10m;
}
location = /halt.html {
root /var/www/pipe/theme;
}
access_log /var/log/panel/access.log;
error_log /var/log/panel/error.log;
}
pipe.json
中也将 Server
改为 "https://mydomain.com",
请问这个问题该怎么解决?
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于