File tree Expand file tree Collapse file tree 4 files changed +5
-0
lines changed
Expand file tree Collapse file tree 4 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ RUN rm -f /etc/nginx/conf.d/*
77
88ENV SERVER_NAME example.com
99ENV PORT 80
10+ ENV CLIENT_MAX_BODY_SIZE 1m
1011ENV WORKER_PROCESSES auto
1112
1213COPY files/run.sh /
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ $ docker-compose up
5353| ---| ---| ---|
5454| ` SERVER_NAME ` | Value for ` server_name ` directive| ` example.com ` |
5555| ` PORT ` | Value for ` listen ` directive| ` 80 ` |
56+ | ` CLIENT_MAX_BODY_SIZE ` | Value for ` client_max_body_size ` directive| ` 1m ` |
5657| ` WORKER_PROCESSES ` | Value for ` worker_processes ` directive| ` auto ` |
5758
5859## Author
Original file line number Diff line number Diff line change 1515 listen ##PORT##;
1616 server_name ##SERVER_NAME##;
1717
18+ client_max_body_size ##CLIENT_MAX_BODY_SIZE##;
19+
1820 include /etc/nginx/conf.d/*.conf;
1921
2022 location / {
Original file line number Diff line number Diff line change 1919
2020htpasswd -bBc /etc/nginx/.htpasswd $BASIC_AUTH_USERNAME $BASIC_AUTH_PASSWORD
2121sed \
22+ -e " s/##CLIENT_MAX_BODY_SIZE##/$CLIENT_MAX_BODY_SIZE /g" \
2223 -e " s/##WORKER_PROCESSES##/$WORKER_PROCESSES /g" \
2324 -e " s/##SERVER_NAME##/$SERVER_NAME /g" \
2425 -e " s/##PORT##/$PORT /g" \
You can’t perform that action at this time.
0 commit comments