1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-19 23:51:25 +02:00
Files
ansible
apps
locale
media
note_kfet
requirements
.dockerignore
.env_example
.gitignore
.gitlab-ci.yml
.gitmodules
COPYING
Dockerfile
LICENSE
README.md
entrypoint.sh
manage.py
nginx_note.conf_docker
nginx_note.conf_example
note.cron
tox.ini
uwsgi_note.ini
uwsgi_params
nk20/nginx_note.conf_docker
2020-08-09 20:33:48 +02:00

28 lines
696 B
Plaintext

# This is an example NGINX site configuration for note_kfet in Docker
# Only HTTP, please use a reverse proxy to secure it!
server {
# Serve this site by default on HTTP
listen 80 default_server;
listen [::]:80 default_server;
# Max upload size
client_max_body_size 75M;
# Django statics and media
location /static {
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;
}
}