aboutsummaryrefslogtreecommitdiff
path: root/config/nginx.config
blob: 16fc053582652fe4d13c95330fd36a2f52236f86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
	}
}