added proxy pass to nginx configuration file

prevent request hostname being localhost:8000 | passthrough server hostname from nginx
This commit is contained in:
Paul Wolf 2020-05-07 07:42:48 +02:00 committed by GitHub
parent ea830f53b0
commit 8796eeeb62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,6 +268,7 @@ This is an example ``nginx.conf`` configuration for Daphne listing on port
proxy_pass http://localhost:8000;
}
location /rest {
proxy_set_header Host $http_host;
proxy_pass http://localhost:8000;
}
location /ws {