kingcap/openapi
0
1user app app;2worker_processes auto;3pid /tmp/nginx.pid;4 5error_log /dev/stderr warn;6 7events {8 worker_connections 1024;9}10 11http {12 include /etc/nginx/mime.types;13 default_type application/octet-stream;14 sendfile on;15 keepalive_timeout 65;16 client_max_body_size 100m;17 18 access_log /dev/stdout;19 error_log /dev/stderr warn;20 21 proxy_temp_path /tmp/nginx/proxy_temp;22 client_body_temp_path /tmp/nginx/client_temp;23 fastcgi_temp_path /tmp/nginx/fastcgi_temp;24 uwsgi_temp_path /tmp/nginx/uwsgi_temp;25 scgi_temp_path /tmp/nginx/scgi_temp;26 27 server {28 listen 7860;29 server_name _;30 31 proxy_http_version 1.1;32 proxy_set_header Host $host;33 proxy_set_header X-Real-IP $remote_addr;34 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;35 proxy_set_header X-Forwarded-Proto $scheme;36 proxy_set_header Connection "";37 proxy_read_timeout 3600s;38 proxy_send_timeout 3600s;39 proxy_buffering off;40 proxy_request_buffering off;41 42 location = / { proxy_pass http://127.0.0.1:18317; }43 location = /management.html { proxy_pass http://127.0.0.1:18317; }44 location = /health { proxy_pass http://127.0.0.1:18317; }45 location = /status { proxy_pass http://127.0.0.1:18317; }46 location = /setup { proxy_pass http://127.0.0.1:18317; }47 location = /usage-sync-config { proxy_pass http://127.0.0.1:18318; }48 location = /usage-sync-config.html { proxy_pass http://127.0.0.1:18318; }49 location ^~ /usage-sync-config/ { proxy_pass http://127.0.0.1:18318; }50 location ^~ /usage-service/ { proxy_pass http://127.0.0.1:18317; }51 location ^~ /v0/management/ { proxy_pass http://127.0.0.1:18317; }52 53 location / {54 proxy_pass http://127.0.0.1:8317;55 }56 }57}58 