Added cloudflare

This commit is contained in:
Ubuntu
2022-12-25 18:38:35 +00:00
parent b94de6e428
commit e0f48138ba
2 changed files with 41 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
upstream django_server{
server django:8000;
}
server{
listen 80;
server_name localhost;
location / {
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 /django_static/;
}
}