Skip to content

Instantly share code, notes, and snippets.

@RafaelFigueiredo
Created July 30, 2020 19:02
Show Gist options
  • Save RafaelFigueiredo/fb5e938868306ae4ebc7cdf713ccc873 to your computer and use it in GitHub Desktop.
Save RafaelFigueiredo/fb5e938868306ae4ebc7cdf713ccc873 to your computer and use it in GitHub Desktop.
debug
http {
server {
listen 80;
# Force reject to all other locations
location /api {
# Reject requests with unsupported HTTP method
if ($request_method !~ ^(GET|POST|HEAD|OPTIONS|PUT|DELETE)$) {
return 405;
}
proxy_pass http://manager_manager:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment