Skip to content

Commit

Permalink
Add gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadqur committed Nov 27, 2023
1 parent 69c672e commit 63196ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion deployment/wsgi/gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
wsgi_app = "deployment.wsgi.wsgi:application"
bind = "0.0.0.0:8000"
workers = 1
workers = 4
preload_app = True
user = "gen3"
group = "gen3"
timeout = 300
keepalive = 2
keepalive_timeout = 5
4 changes: 3 additions & 1 deletion dockerrun.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Update certificate authority index -
# environment may have mounted more authorities
#
update-ca-certificates
# update-ca-certificates
#
# Kubernetes may mount jwt-keys as a tar ball
#
Expand All @@ -18,3 +18,5 @@ if [ -f /fence/jwt-keys.tar ]; then
fi
)
fi

gunicorn -c deployment/wsgi/gunicorn.conf.py

0 comments on commit 63196ff

Please sign in to comment.