| | worker_processes 1;
|
| |
|
| | pid /tmp/nginx.pid;
|
| |
|
| | events { worker_connections 1024; }
|
| |
|
| | http {
|
| | include mime.types;
|
| | default_type application/octet-stream;
|
| |
|
| | sendfile on;
|
| | keepalive_timeout 65;
|
| |
|
| | server {
|
| | listen 7860;
|
| |
|
| |
|
| | location /api/ {
|
| | proxy_pass http://127.0.0.1:7861;
|
| | 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 / {
|
| | root /usr/share/nginx/html;
|
| | try_files $uri $uri/ /index.html;
|
| | }
|
| | }
|
| | } |