1Panel/cmd/server/nginx_conf/http2https.conf

3 lines
74 B
Plaintext

if ($server_port !~ 443){
rewrite ^(/.*)$ https://$host$1 permanent;
}