Skip to content

Commit

Permalink
set limits
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Aug 14, 2023
1 parent 914a1a8 commit 7a95850
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions embark/templates/uploader/upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<div class="box">
<p class="mainText">Upload firmware</p>
<p class="subText">Supported archive types : firmware binary and most archive types</p>
<p class="subText">Maximum File size : 2GB </p>
<div class="innerBlock">
Selected file:
<div id="file-name" class="uploadedFile">None</div>
Expand Down
4 changes: 3 additions & 1 deletion run-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export DJANGO_SETTINGS_MODULE=embark.settings.deploy
export HTTP_PORT=80
export HTTPS_PORT=443
export BIND_IP='0.0.0.0'
export FILE_SIZE=2000000000
export FILE_SIZE=2000000000 # = 2GB
export SERVER_ALIAS=()
export WSGI_FLAGS=()

Expand Down Expand Up @@ -237,6 +237,8 @@ pipenv run ./manage.py runmodwsgi --user www-embark --group sudo \
--include-file /var/www/conf/embark.conf \
--processes 4 --threads 4 \
--graceful-timeout 5 \
--request-timeout 0 \
--log-level info \
--server-name embark.local "${WSGI_FLAGS[@]}" &
# --ssl-certificate /var/www/conf/cert/embark.local --ssl-certificate-key-file /var/www/conf/cert/embark.local.key \
# --https-port "$HTTPS_PORT" &
Expand Down

0 comments on commit 7a95850

Please sign in to comment.