docker 命令
$ docker run -v /home/siyuan:/siyuanworkspace -p 6806:6806 b3log/siyuan --resident="true" -workspace /siyuanworkspace --servePath="xxx.com" --ssl="true" --accessAuthCode="xxxxx"
F12 报错
Mixed Content: The page at 'https://notes.senlief.xyz/stage/build/desktop/?r=ds4mexl' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://notes.senlief.xyz:6806/stage/protyle/js/lute/lute.min.js?v=1.3.5'. This request has been blocked; the content must be served over HTTPS.
nginx 反代配置
server
{
listen 80;
listen 443 ssl http2;
server_name notes.senlief.xyz;
index index.php index.html index.htm default.php default.htm default.html;
root /var/www/html;
if ($server_port !~ 443){
rewrite ^(/.*)$ https://$host$1 permanent;
}
#HTTP_TO_HTTPS_END
ssl_certificate /etc/ssl/fullchain.cer;
ssl_certificate_key /etc/ssl/senlief.xyz.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
error_page 497 https://$host$request_uri;
#SSL-END
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:6806;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 100m;
}
}
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于