Files
Work-configuration-file/nginx/官网小工具lessie_ai_web_prod.conf
2025-10-07 15:58:15 +08:00

95 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}