From f517623a5455e264d789357a3055e020d24bb1f5 Mon Sep 17 00:00:00 2001 From: "alban.espie-guillon" Date: Tue, 26 Jul 2022 12:17:11 +0200 Subject: [PATCH] Fixed: issue #2, increase client_max_body_size directive --- docker/decoder-demo.conf.template | 11 +++++++++-- docker/decoder.conf.template | 4 +++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/docker/decoder-demo.conf.template b/docker/decoder-demo.conf.template index f84565c..cf26c02 100644 --- a/docker/decoder-demo.conf.template +++ b/docker/decoder-demo.conf.template @@ -65,13 +65,20 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $host; - # websocket headers + + # update https://gitlab.ow2.org/decoder/reverse-proxy/issues/1 proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; - #proxy_set_header Connection "upgrade"; proxy_http_version 1.1; + proxy_set_header X-Scheme $scheme; proxy_set_header X-NginX-Proxy true; proxy_hide_header Content-Security-Policy; + # end update https://gitlab.ow2.org/decoder/reverse-proxy/issues/1 + + # https://gitlab.ow2.org/decoder/reverse-proxy/-/issues/2 + client_max_body_size 100M; + + proxy_hide_header X-Frame-Options; } # https://dev.to/danielkun/nginx-everything-about-proxypass-2ona diff --git a/docker/decoder.conf.template b/docker/decoder.conf.template index 89202ee..926b29a 100644 --- a/docker/decoder.conf.template +++ b/docker/decoder.conf.template @@ -12,7 +12,6 @@ map $uriPrefix $upstreamNameWithPortAndPrefix { openjml_analyzer openjmlanalyzer:5002; javaparser javaparser:5001; jmlgen jmlgen:5005; - # testar ow2-testar-decoder.xsalto.net:8080; testar testar:8080; srl srl; ner ner; @@ -61,6 +60,9 @@ server { proxy_hide_header Content-Security-Policy; # end update https://gitlab.ow2.org/decoder/reverse-proxy/issues/1 + # https://gitlab.ow2.org/decoder/reverse-proxy/-/issues/2 + client_max_body_size 100M; + proxy_hide_header X-Frame-Options; } } -- GitLab