From b90a0a23ed9c430e17bbdbb4439d207d5c55e74d Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Thu, 20 Jun 2019 15:45:20 +0200 Subject: [PATCH] Change back to /upload --- README.MD | 4 ++-- nginx.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.MD b/README.MD index fac780d..e94de78 100644 --- a/README.MD +++ b/README.MD @@ -17,9 +17,9 @@ Environment variables are used to provide configuration. Try it out: - curl localhost:8000/ -d 'some data' -v + curl localhost:8000/upload -d 'some data' -v ... - > PUT /uploads HTTP/1.1 + > PUT /upload HTTP/1.1 ... < X-File-URL: https://uploads.paidit.se/59389abb021973a41d05e0d7d79949b17b83b142058a3704c98f274b6e563cfc403e64db6550f233 ... diff --git a/nginx.conf b/nginx.conf index 427294b..3b34f55 100644 --- a/nginx.conf +++ b/nginx.conf @@ -22,7 +22,7 @@ http { access_log off; } - location ~* ^/ { + location ~* ^/upload { if ($request_method = 'OPTIONS') { # Tell client that this pre-flight info is valid for 20 days add_header 'Access-Control-Allow-Origin' "*" ;