mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-23 07:52:23 +00:00
33 lines
956 B
Plaintext
33 lines
956 B
Plaintext
|
# nginx_songbook.conf
|
||
|
# the upstream component nginx needs to connect to
|
||
|
upstream note{
|
||
|
server unix:///var/www/note_kfet/note_kfet.sock; # file socket
|
||
|
}
|
||
|
|
||
|
# configuration of the server
|
||
|
server {
|
||
|
# the port your site will be served on
|
||
|
listen 80;
|
||
|
# the domain name it will serve for
|
||
|
server_name note.comby.xyz; # substitute your machine's IP address or FQDN
|
||
|
charset utf-8;
|
||
|
|
||
|
# max upload size
|
||
|
client_max_body_size 75M; # adjust to taste
|
||
|
|
||
|
# Django media
|
||
|
location /media {
|
||
|
alias /var/www/note_kfet/media; # your Django project's media files - amend as required
|
||
|
}
|
||
|
|
||
|
location /static {
|
||
|
alias /var/www/note_kfet/static; # your Django project's static files - amend as required
|
||
|
}
|
||
|
|
||
|
# Finally, send all non-media requests to the Django server.
|
||
|
location / {
|
||
|
uwsgi_pass note;
|
||
|
include /var/www/note_kfet/uwsgi_params; # the uwsgi_params file you installed
|
||
|
}
|
||
|
}
|