1
0
Fork 0
mirror of https://github.com/demostf/proxy synced 2026-06-03 20:14:07 +02:00

proper upload size error

This commit is contained in:
Robin Appelman 2020-04-20 22:45:30 +02:00
commit b992208da6
3 changed files with 6 additions and 0 deletions

1
413.html Normal file
View file

@ -0,0 +1 @@
Demos cant be more than 200MB in size

View file

@ -1,5 +1,6 @@
FROM staticfloat/nginx-certbot
COPY nginx.conf /
COPY entrypoint.sh /
COPY 413.html /var/www
CMD ["/bin/bash", "/entrypoint.sh"]

View file

@ -4,6 +4,10 @@ server {
ssl_certificate /etc/letsencrypt/live/${SOURCE}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/${SOURCE}/privkey.pem;
root /var/www;
error_page 413 /413.html;
location / {
proxy_pass http://${TARGET};
proxy_set_header Host $host;