nk20/nginx_note.conf_example

29 lines
725 B
Plaintext
Raw Normal View History

2020-08-09 18:33:48 +00:00
# This is an example NGINX site configuration for note_kfet behind a reverse proxy
# Only HTTP, please use a reverse proxy to secure it!
2019-07-07 20:49:02 +00:00
server {
2020-08-09 18:33:48 +00:00
# Serve this site by default on HTTP
listen 80 default_server;
listen [::]:80 default_server;
2019-07-07 20:49:02 +00:00
2020-08-09 18:33:48 +00:00
# Max upload size
client_max_body_size 75M;
2019-07-07 20:49:02 +00:00
2020-08-09 18:33:48 +00:00
# Django statics and media
2019-07-07 20:49:02 +00:00
location /static {
2020-08-09 18:33:48 +00:00
alias /var/www/note_kfet/static;
}
location /media {
alias /var/www/note_kfet/media;
2019-07-07 20:49:02 +00:00
}
location /doc {
alias /var/www/documentation;
}
2019-07-07 20:49:02 +00:00
2020-08-09 18:33:48 +00:00
# Send all non-media requests to the Django server.
2019-07-07 20:49:02 +00:00
location / {
2020-08-09 18:33:48 +00:00
uwsgi_pass unix:///var/www/note_kfet/note_kfet.sock;
include /etc/nginx/uwsgi_params;
2019-07-07 20:49:02 +00:00
}
}