mirror of
https://github.com/aykhans/series-robot-web.git
synced 2025-09-01 04:33:33 +00:00
Removed gunicorn and fixed nginx
This commit is contained in:
@@ -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/;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user