Skip to content

Commit

Permalink
Add proxy settings
Browse files Browse the repository at this point in the history
Signed-off-by: Alice Ferrazzi <[email protected]>
  • Loading branch information
aliceinwire committed Dec 7, 2021
1 parent d032ba8 commit 6bea1dc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM jwilder/nginx-proxy:alpine

COPY uploadsize.conf /etc/nginx/conf.d/uploadsize.conf
COPY proxy.conf /etc/nginx/proxy.conf
17 changes: 17 additions & 0 deletions proxy/proxy.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# HTTP 1.1 support
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;

# raise the proxy timeout for the websocket
proxy_read_timeout 6000s;

# Mitigate httpoxy attack (see README for details)
proxy_set_header Proxy "";
1 change: 1 addition & 0 deletions proxy/uploadsize.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
client_max_body_size 10G;

0 comments on commit 6bea1dc

Please sign in to comment.