| 1 | worker_processes 1; |
| 2 | |
| 3 | events { |
| 4 | worker_connections 1024; |
| 5 | } |
| 6 | |
| 7 | http { |
| 8 | include mime.types; |
| 9 | default_type application/octet-stream; |
| 10 | sendfile on; |
| 11 | keepalive_timeout 65; |
| 12 | client_max_body_size 256m; |
| 13 | |
| 14 | server { |
| 15 | listen 2000; |
| 16 | server_name _; |
| 17 | |
| 18 | # location for scoutsuite-report |
| 19 | location /scoutsuite-report { |
| 20 | proxy_pass http://copilot-backend:5000; |
| 21 | } |
| 22 | |
| 23 | location / { |
| 24 | root /usr/share/nginx/html; |
| 25 | try_files $uri $uri/ /index.html; |
| 26 | } |
| 27 | } |
| 28 | } |