nginx安装
halo博客安装
https和反向代理
upstream halo {server 127.0.0.1:8090;}server {listen 80;listen [::]:80;server_name www.wjysb.top;client_max_body_size 1024m;return 301 https://$host$request_uri;}server {listen 443 ssl;server_name wjysb.top;ssl_certificate wjysb.top_bundle.crt;ssl_certificate_key wjysb.top.key;ssl_session_timeout 5m;ssl_protocols TLSv1 TLSv1.2 TLSv1.3;ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;ssl_prefer_server_ciphers on;location / {proxy_pass http://halo;proxy_set_header HOST $host;proxy_set_header X-Forwarded-Proto $scheme;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}}
记得把防火墙的80和443端口打开
https://www.wjysb.top 本人只维护到2022.12
