aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2021-10-30 00:29:27 +0200
committercbdev <cb@cbcdn.com>2021-10-30 00:29:27 +0200
commit689cdb8168b509887a459ea92d74280bc2fe8bbe (patch)
tree95904b1d137071b92b3a5ad31f84e938ac0df5e7 /config
parentb87909c9dd7aabe7b8f8bd63138876dff5cd2200 (diff)
downloadcargohold-689cdb8168b509887a459ea92d74280bc2fe8bbe.tar.gz
cargohold-689cdb8168b509887a459ea92d74280bc2fe8bbe.tar.bz2
cargohold-689cdb8168b509887a459ea92d74280bc2fe8bbe.zip
Document config.py, add example nginx config and DB schema
Diffstat (limited to 'config')
-rw-r--r--config/nginx.config27
1 files changed, 27 insertions, 0 deletions
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;
+ }
+}