-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alice Ferrazzi <[email protected]>
- Loading branch information
1 parent
d032ba8
commit 6bea1dc
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
client_max_body_size 10G; |