Newer
Older
# This is an example NGINX site configuration for note_kfet in Docker
# Only HTTP, please use a reverse proxy to secure it!
# Serve this site by default on HTTP
listen 80 default_server;
listen [::]:80 default_server;
alias /code/static;
}
location /media {
alias /code/media;
# Send all non-media requests to the Django server.
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;