Update initproxy.conf

This commit is contained in:
赵璟 2024-12-17 14:07:15 +08:00 committed by GitHub
parent 4d3dd86ed1
commit e33c4e01e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,13 +1,19 @@
# ------------------------------------------------------------
# domain.com
# ------------------------------------------------------------
server {
listen 80;
listen [::]:80;
listen 80 default_server;
listen [::]:80 default_server;
server_name ~\.?[0-9a-zA-Z]$;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
server_name ~\.?[0-9a-zA-Z]$;
ssl_certificate /data/custom_ssl/0-self-signed.cert;
ssl_certificate_key /data/custom_ssl/0-self-signed.key;
access_log /data/logs/proxy-host-1_access.log proxy;
error_log /data/logs/proxy-host-1_error.log warn;