Removed gunicorn and fixed nginx

This commit is contained in:
ayxan
2022-10-02 01:51:45 +04:00
parent 46bbb10d20
commit a689929478
4 changed files with 16 additions and 15 deletions

View File

@@ -1,19 +1,19 @@
upstream restgunicorn_server{
upstream django_server{
server django:8000;
}
server{
listen 8080;
server_name localhost;
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;
proxy_pass http://django_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/;
alias /django_static/;
}
}