EasyRecon/Hunt3r

View on GitHub
conf/nginx/nginx.conf

Summary

Maintainability
Test Coverage
server {
  listen 80;
  listen [::]:80;

  access_log /var/log/nginx/reverse-access.log;
  error_log /var/log/nginx/reverse-error.log;

  location /api/ {
    proxy_set_header Host $host;

    proxy_pass http://backend.local:3000;
    client_max_body_size 500M;
    proxy_read_timeout 300;
    proxy_connect_timeout 300;
    proxy_send_timeout 300;
  }

  location / {
    proxy_pass http://frontend.local;
    client_max_body_size 500M;
    proxy_read_timeout 300;
    proxy_connect_timeout 300;
    proxy_send_timeout 300;
  }
}