From 689cdb8168b509887a459ea92d74280bc2fe8bbe Mon Sep 17 00:00:00 2001 From: cbdev Date: Sat, 30 Oct 2021 00:29:27 +0200 Subject: Document config.py, add example nginx config and DB schema --- config/nginx.config | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 config/nginx.config (limited to 'config') diff --git a/config/nginx.config b/config/nginx.config new file mode 100644 index 0000000..16fc053 --- /dev/null +++ b/config/nginx.config @@ -0,0 +1,27 @@ +server { + listen [::]:443 ssl; + + root /var/www/nonesuch; + server_name files.stumpf.es; + + location / { + client_max_body_size 100M; + uwsgi_pass unix:///tmp/cargohold.sock; + include uwsgi_params; + error_page 502 /assets/502.html; + } + + location /interface { + internal; + alias /var/www/cargohold/interface; + } + + location /data { + internal; + alias /media/disk1/files.stumpf.es; + } + + location /assets { + alias /var/www/cargohold/assets; + } +} -- cgit v1.2.3