95 lines
2.6 KiB
Plaintext
95 lines
2.6 KiB
Plaintext
|
|
server {
|
|||
|
|
listen 443 ssl;
|
|||
|
|
server_name lessie.ai www.lessie.ai;
|
|||
|
|
|
|||
|
|
ssl_certificate /data/tengine/certificate/lessie.ai.pem;
|
|||
|
|
ssl_certificate_key /data/tengine/certificate/lessie.ai.key;
|
|||
|
|
|
|||
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|||
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|||
|
|
|
|||
|
|
# promote 页面(promote 的页面内容)
|
|||
|
|
location ~ ^/(promote|inbox|process){
|
|||
|
|
root /data/tengine/lessie_ai_promote/dist/;
|
|||
|
|
index index.html;
|
|||
|
|
try_files $uri $uri/ /index.html;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
# # promote 页面 test 接口
|
|||
|
|
# location ~ ^/promote/test-api/ {
|
|||
|
|
# proxy_pass http://127.0.0.1:5001;
|
|||
|
|
# proxy_set_header Host 127.0.0.1;
|
|||
|
|
# proxy_set_header X-Real-IP $remote_addr;
|
|||
|
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|||
|
|
# proxy_intercept_errors off;
|
|||
|
|
# proxy_buffering off;
|
|||
|
|
# proxy_cache off;
|
|||
|
|
# proxy_set_header Connection keep-alive;
|
|||
|
|
# }
|
|||
|
|
|
|||
|
|
# # promote 页面 prod 接口
|
|||
|
|
# location ~ ^/promote/prod-api/ {
|
|||
|
|
# proxy_pass http://127.0.0.1:5001;
|
|||
|
|
# proxy_set_header Host 127.0.0.1;
|
|||
|
|
# proxy_set_header X-Real-IP $remote_addr;
|
|||
|
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|||
|
|
# proxy_intercept_errors off;
|
|||
|
|
# proxy_buffering off;
|
|||
|
|
# proxy_cache off;
|
|||
|
|
# proxy_set_header Connection keep-alive;
|
|||
|
|
# }
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
# --------
|
|||
|
|
# tiktok-email-finder 小工具页面
|
|||
|
|
location / {
|
|||
|
|
root /data/tengine/html/lessie_ai/dist/;
|
|||
|
|
index index.html index.htm;
|
|||
|
|
try_files $uri $uri/ /index.html;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# tiktok-email-finder 小工具 prod 接口
|
|||
|
|
location /prod-api/ {
|
|||
|
|
proxy_pass http://129.204.158.54:8070;
|
|||
|
|
proxy_set_header Host 129.204.158.54;
|
|||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|||
|
|
proxy_intercept_errors off;
|
|||
|
|
proxy_buffering off;
|
|||
|
|
proxy_cache off;
|
|||
|
|
proxy_set_header Connection keep-alive;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#tiktok-email-finder 小工具 test 接口
|
|||
|
|
location /test-api/ {
|
|||
|
|
proxy_pass http://43.139.181.45:8070;
|
|||
|
|
proxy_set_header Host 43.139.181.45;
|
|||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|||
|
|
proxy_intercept_errors off;
|
|||
|
|
proxy_buffering off;
|
|||
|
|
proxy_cache off;
|
|||
|
|
proxy_set_header Connection keep-alive;
|
|||
|
|
}
|
|||
|
|
# -------
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
error_page 500 502 503 504 /50x.html;
|
|||
|
|
location = /50x.html {
|
|||
|
|
root html;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
server {
|
|||
|
|
listen 80;
|
|||
|
|
server_name lessie.ai www.lessie.ai;
|
|||
|
|
return 301 https://$host$request_uri;
|
|||
|
|
}
|