mirror of
https://github.com/aykhans/series-robot-web.git
synced 2025-09-09 15:50:44 +00:00
Added cloudflare
This commit is contained in:
19
config/nginx/server-cloudflare.conf
Normal file
19
config/nginx/server-cloudflare.conf
Normal 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/;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user