worker_processes auto; pid /tmp/nginx.pid; events { worker_connections 1024; } http { client_body_temp_path /tmp/nginx/body; fastcgi_temp_path /tmp/nginx/fastcgi; proxy_temp_path /tmp/nginx/proxy; scgi_temp_path /tmp/nginx/scgi; uwsgi_temp_path /tmp/nginx/uwsgi; server { listen 7860; location /ai/v1/ { rewrite ^/ai/v1/(.*)$ /v1/$1 break; proxy_pass http://127.0.0.1:10000; 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 $scheme; } location / { proxy_pass http://127.0.0.1:10000; 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 $scheme; } } access_log /dev/stdout; error_log /dev/stderr warn; }