mirror of https://github.com/interlegis/sigi.git
Lude Ribeiro
3 years ago
3 changed files with 34 additions and 6 deletions
@ -0,0 +1,15 @@ |
|||
# nginx.default |
|||
|
|||
server { |
|||
listen 8020; |
|||
server_name example.org; |
|||
|
|||
location / { |
|||
proxy_pass http://127.0.0.1:8010; |
|||
proxy_set_header Host $host; |
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|||
} |
|||
location /static { |
|||
root ./; |
|||
} |
|||
} |
@ -0,0 +1,7 @@ |
|||
#!/usr/bin/env bash |
|||
# start-server.sh |
|||
if [ -n "$DJANGO_SUPERUSER_USERNAME" ] && [ -n "$DJANGO_SUPERUSER_PASSWORD" ] ; then |
|||
(.; python manage.py createsuperuser --no-input) |
|||
fi |
|||
(. ; gunicorn sigi.wsgi --user www-data --bind 0.0.0.0:8010 --workers 3) & |
|||
nginx -g "sigi off;" |
Loading…
Reference in new issue