Skip to content

Commit

Permalink
Option to set max_body_size for nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
bestlibre committed Feb 6, 2018
1 parent c87dfc8 commit a6da281
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions nginx_proxy/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Nginx Proxy",
"version": "0.1.9",
"version": "0.1.10",
"slug": "nginx_proxy",
"description": "Nginx Proxy for multiple VHOSTS",
"url": "https://github.com/bestlibre/hassio-addons/tree/master/nginx_proxy",
Expand All @@ -22,7 +22,9 @@
"default_server": "bool?",
"certname": "str?",
"ssl_modern": "bool?",
"auth": "str?"}
"auth": "str?",
"max_body_size": "str?"
}
]
},
"ports": {"80/tcp": 80, "443/tcp": 443},
Expand Down
4 changes: 3 additions & 1 deletion nginx_proxy/vhost.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ server {
auth_basic "password protected";
auth_basic_user_file /data/auth_{{vhost}};
{{/auth}}

{{#max_body_size}}
client_max_body_size {{max_body_size}};
{{/max_body_size}}
location / {
proxy_pass http://{{#remote}}{{remote}}{{/remote}}{{^remote}}172.17.0.1{{/remote}}:{{port}};
}
Expand Down

0 comments on commit a6da281

Please sign in to comment.