-
Notifications
You must be signed in to change notification settings - Fork 16
/
multiexplorer.nginx
39 lines (32 loc) · 1.03 KB
/
multiexplorer.nginx
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
28
29
30
31
32
33
34
35
36
37
38
39
upstream wsgicluster_multiexplorer {
server unix://tmp/multiexplorer.sock;
}
server {
listen 80;
server_name www.multiexplorer.com multiexplorer.com;
rewrite ^ https://multiexplorer.com$request_uri? permanent;
}
server {
listen 443;
server_name multiexplorer.com;
error_log /var/log/nginx/multiexplorer-error.log;
access_log /var/log/nginx/multiexplorer-access.log;
sendfile on;
client_max_body_size 25M;
ssl on;
ssl_certificate /etc/letsencrypt/live/multiexplorer.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/multiexplorer.com/privkey.pem; # this file never changes (even if cert is expired)
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
location / {
include uwsgi_params;
uwsgi_pass wsgicluster_multiexplorer;
uwsgi_read_timeout 700;
}
location /static/ {
root /home/chris/MultiExplorer/multiexplorer/;
expires modified 2d;
}
location = /favicon.ico {
log_not_found off;
}
}