added gunicorn

This commit is contained in:
ayxan
2022-10-01 23:10:30 +04:00
parent e613fe1874
commit 46bbb10d20
6 changed files with 40 additions and 15 deletions

19
config/nginx/local.conf Normal file
View File

@@ -0,0 +1,19 @@
upstream restgunicorn_server{
server django:8000;
}
server{
listen 8080;
server_name localhost;
location / {
proxy_pass http://restgunicorn_server;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /django_static/ {
alias /src/django_static/;
}
}