configs: nginx proxy example to match with staging.
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
ae0ece8f18
commit
ed4f7f5721
1 changed files with 6 additions and 6 deletions
|
@ -1,20 +1,20 @@
|
||||||
server {
|
server {
|
||||||
listen destruction.io:8080;
|
listen 80;
|
||||||
server_name destruction.io;
|
server_name dynamicweb-staging.ungleich.ch;
|
||||||
|
|
||||||
location /static {
|
location /static {
|
||||||
alias /home/r/dynamicweb/static/;
|
alias /home/app/django/dynamicweb/static/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /media {
|
location /media {
|
||||||
alias /home/r/dynamicweb/media/;
|
alias /home/app/django/dynamicweb/media/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8000/;
|
proxy_pass http://127.0.0.1:8000/;
|
||||||
proxy_pass_header Server;
|
proxy_pass_header Server;
|
||||||
proxy_set_header Host $host:8080;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-Host $host:8080;
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Scheme $scheme;
|
proxy_set_header X-Scheme $scheme;
|
||||||
|
|
Loading…
Reference in a new issue