You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
632 B

server {
listen 80;
#listen [::]:80;
server_name cloud.yimian.xyz;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
#listen 80;
listen 443 ssl;
server_name cloud.yimian.xyz;
#ssl_certificate /mnt/config/ssl/yimian.xyz/yimian.xyz.crt;
#ssl_certificate_key /mnt/config/ssl/yimian.xyz/yimian.xyz.key;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
location / {
proxy_pass https://frps:8123;
}
}