将反向代理配置文件URL从reverse-proxy.conf改为reverse-proxy-template.conf以使用最新模板 移除证书申请命令中的多余空格保持格式一致
32 lines
887 B
Plaintext
Executable File
32 lines
887 B
Plaintext
Executable File
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name yuming.com;
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name yuming.com;
|
|
|
|
ssl_certificate /etc/nginx/certs/yuming.com_cert.pem;
|
|
ssl_certificate_key /etc/nginx/certs/yuming.com_key.pem;
|
|
|
|
try_files $uri $uri/ /index.php?$args;
|
|
|
|
location / {
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Range $http_range;
|
|
proxy_set_header If-Range $http_if_range;
|
|
proxy_redirect off;
|
|
proxy_pass http://0.0.0.0:0000;
|
|
|
|
#the max size of file to upload
|
|
client_max_body_size 20000m;
|
|
}
|
|
}
|