Skip to content

Commit

Permalink
chore: convert uwsgi config file to ini
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas777 committed Nov 5, 2024
1 parent 3d415fc commit c56ca39
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: CI

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion deploy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ elif [[ "$DEV_SERVER" = "true" ]]; then
exec python -Wd ./manage.py runserver 0.0.0.0:8000
else
echo "Starting production server"
exec uwsgi -y deploy/uwsgi.yml
exec uwsgi -ini deploy/uwsgi.ini
fi
22 changes: 22 additions & 0 deletions deploy/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[uwsgi]
# Needed plugins if running against Debian uwsgi-package
# python docker image cannot use that due to linker mishaps
wsgi-file = kerrokantasi/wsgi.py
processes = 3
#threads = 1
master = true
umask = 022
reload-on-rss = 300

# Allow large image uploads
#chunked-input-limit = 10485760
buffer-size = 32768

http = :8000
static-map = /static=/srv/static
static-map = /media=/srv/media

# Ignore write errors
ignore-sigpipe = true
ignore-write-errors = true
disable-write-exception = true
22 changes: 0 additions & 22 deletions deploy/uwsgi.yml

This file was deleted.

0 comments on commit c56ca39

Please sign in to comment.