mirror of
https://github.com/demostf/proxy
synced 2026-06-03 12:04:07 +02:00
proper upload size error
This commit is contained in:
parent
fceb9946c8
commit
b992208da6
3 changed files with 6 additions and 0 deletions
1
413.html
Normal file
1
413.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Demos cant be more than 200MB in size
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
FROM staticfloat/nginx-certbot
|
FROM staticfloat/nginx-certbot
|
||||||
COPY nginx.conf /
|
COPY nginx.conf /
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
|
COPY 413.html /var/www
|
||||||
|
|
||||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@ server {
|
||||||
ssl_certificate /etc/letsencrypt/live/${SOURCE}/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/${SOURCE}/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/${SOURCE}/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/${SOURCE}/privkey.pem;
|
||||||
|
|
||||||
|
root /var/www;
|
||||||
|
|
||||||
|
error_page 413 /413.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://${TARGET};
|
proxy_pass http://${TARGET};
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue