Created
July 30, 2020 19:02
-
-
Save RafaelFigueiredo/fb5e938868306ae4ebc7cdf713ccc873 to your computer and use it in GitHub Desktop.
debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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