CoolFace
Apppublic

ErayCC/serayai

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
nginx.conf32 linesDownload Raw Back to root
1user nginx;2 3events {4    worker_connections 1024;5}6 7http {8    # 禁用 admin 接口和日志输出9    server {10        listen 3001;11 12        location /ai/v1/ {13            rewrite ^/ai/v1/(.*)$ /v1/$1 break;14            proxy_pass http://127.0.0.1:3000;15            proxy_set_header Host $host;16            proxy_set_header X-Real-IP $remote_addr;17            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;18            proxy_set_header X-Forwarded-Proto $scheme;19        }20 21        location / {22            proxy_pass http://127.0.0.1:3000;23            proxy_set_header Host $host;24            proxy_set_header X-Real-IP $remote_addr;25            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;26            proxy_set_header X-Forwarded-Proto $scheme;27        }28    }29 30    # 禁用错误日志输出31    error_log /dev/null crit;32}