added gunicorn

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

No files matched your search

+19
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/;
}
}