forked from ericwbailey/empathy-prompts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstantill_nginx
65 lines (54 loc) · 1.69 KB
/
instantill_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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# REDIRECTS - EVERYTHING TO HTTPS AND NO WWW
server {
listen 80;
server_name instantill.org *.instantill.org;
return 301 https://$server_name$request_uri;
}
server {
listen 443;
server_name www.instantill.org;
return 301 https://instantill.org;
}
server {
listen 443;
server_name instantill.org;
#root /home/cloo/live/openresearchbutton/website;
return 302 https://openaccessbutton.org/instantill;
ssl on;
ssl_certificate /etc/letsencrypt/live/instantill.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/instantill.org/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
ssl_prefer_server_ciphers on;
ssl_stapling on;
add_header Strict-Transport-Security "max-age=31536000;";
add_header Pragma public;
add_header Cache-Control "public";
add_header Access-Control-Allow-Origin *;
}
server {
listen 443;
server_name dev.instantill.org;
root /home/cloo/dev/openresearchbutton/website;
ssl on;
ssl_certificate /etc/letsencrypt/live/dev.instantill.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/dev.instantill.org/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
ssl_prefer_server_ciphers on;
ssl_stapling on;
add_header Strict-Transport-Security "max-age=31536000;";
add_header Pragma public;
add_header Cache-Control "public";
add_header Access-Control-Allow-Origin *;
location / {
try_files /serve/instantill_demo_rebrand.html =404;
}
location /setup {
try_files /serve/instantill_alpha_rebrand.html =404;
}
location /static {
try_files /serve/$uri $uri =404;
# expires 30d;
}
}