diff --git a/docker/decoder-demo.conf.template b/docker/decoder-demo.conf.template index f84565c68a5b7bae5ad70a7f2423901f281d7492..cf26c02089395791f4eb4569a10a1b9593089dd5 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 89202eec65cc61e5b86d3f8a034ca545c18840a3..926b29adbf0575303ae63386fc8a0f30c30b70bd 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; } }