Skip to content

Commit

Permalink
Merge pull request #654 from m-ildefons/tools/nginx-config
Browse files Browse the repository at this point in the history
tools: fix nginx config
  • Loading branch information
m-ildefons authored Sep 8, 2023
2 parents 2546e91 + 416fa1a commit f247d15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ server {
listen 3080;
server_name s3gw-proxy;

client_max_body_size 10M;

location / {

if ($request_method = 'OPTIONS') {
Expand All @@ -26,6 +28,7 @@ server {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Headers' '*' always;
add_header 'Access-Control-Allow-Methods' 'DELETE,GET,HEAD,POST,PUT' always;
add_header 'Access-Control-Expose-Headers' 'ETag';

proxy_pass http://s3gw:7480/;
}
Expand Down

0 comments on commit f247d15

Please sign in to comment.