Skip to content

Instantly share code, notes, and snippets.

@iamsebastian
Created December 13, 2018 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamsebastian/21c2db8b5165440add95a74b8a617363 to your computer and use it in GitHub Desktop.
Save iamsebastian/21c2db8b5165440add95a74b8a617363 to your computer and use it in GitHub Desktop.
[nginx] proxy pass with PATCH instead of PUT
# This is your nginx.conf to setting up a proxy, changing the
# HTTP method from * to PATCH, and forward the request.
http {
server {
listen 80;
location / {
proxy_method PATCH;
proxy_pass http://YOUR_URL:YOUR_PORT/;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment