59 lines
1.5 KiB
Plaintext
59 lines
1.5 KiB
Plaintext
|
|
|
||
|
|
server {
|
||
|
|
listen 443 ssl;
|
||
|
|
server_name www.jennie.deal;
|
||
|
|
|
||
|
|
#sl_certificate /data/tengine/conf/certificate/sitjenniefy.flytothmoon.online_bundle.crt;
|
||
|
|
#sl_certificate_key /data/tengine/conf/certificate/sitjenniefy.flytothmoon.online.key;
|
||
|
|
|
||
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
root /data/tengine/html/jennie_web/dist/;
|
||
|
|
index index.html index.htm;
|
||
|
|
try_files $uri $uri/ /index.html;
|
||
|
|
}
|
||
|
|
error_page 500 502 503 504 /50x.html;
|
||
|
|
location = /50x.html {
|
||
|
|
root html;
|
||
|
|
}
|
||
|
|
location ^~ /prod-api {
|
||
|
|
proxy_pass http://127.0.0.1:8070;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name www.jennie.deal
|
||
|
|
return 301 https://$host$request_uri;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#-----------------------------------------------------------------------------
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name 43.159.145.241;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
root /data/tengine/html/jennie_web/dist/;
|
||
|
|
index index.html index.htm;
|
||
|
|
try_files $uri $uri/ /index.html;
|
||
|
|
}
|
||
|
|
error_page 500 502 503 504 /50x.html;
|
||
|
|
location = /50x.html {
|
||
|
|
root html;
|
||
|
|
}
|
||
|
|
location ^~ /prod-api {
|
||
|
|
proxy_pass http://127.0.0.1:8070;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
}
|
||
|
|
}
|