55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name lehoo6.com admin.lehoo6.com;
|
||
|
|
|
||
|
|
return 301 https://$host$request_uri;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 443 ssl;
|
||
|
|
http2 on;
|
||
|
|
server_name lehoo6.com;
|
||
|
|
|
||
|
|
ssl_certificate /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.pem;
|
||
|
|
ssl_certificate_key /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.key;
|
||
|
|
|
||
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||
|
|
ssl_session_cache shared:SSL:10m;
|
||
|
|
ssl_session_timeout 10m;
|
||
|
|
|
||
|
|
client_max_body_size 50m;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://integral-h5:80;
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_set_header X-Forwarded-Proto https;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 443 ssl;
|
||
|
|
http2 on;
|
||
|
|
server_name admin.lehoo6.com;
|
||
|
|
|
||
|
|
ssl_certificate /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.pem;
|
||
|
|
ssl_certificate_key /etc/nginx/ssl/lehoo6.com_cert/lehoo6.com.key;
|
||
|
|
|
||
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||
|
|
ssl_session_cache shared:SSL:10m;
|
||
|
|
ssl_session_timeout 10m;
|
||
|
|
|
||
|
|
client_max_body_size 50m;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://integral-houtai:8785;
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_set_header X-Forwarded-Proto https;
|
||
|
|
}
|
||
|
|
}
|