-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
50 lines (41 loc) · 1.09 KB
/
nginx.conf
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
server {
listen 80;
server_name local.bigbraincarl.com www.bigbraincarl.com bigbraincarl.com;
return 301 https://$host;
}
server {
listen 443 ssl;
server_name local.bigbraincarl.com www.bigbraincarl.com bigbraincarl.com;
ssl_certificate /certs/bigbraincarl.com.pem;
ssl_certificate_key /certs/bigbraincarl.com.key.pem;
location / {
root /var/www/bigbraincarl;
}
location * {
return 301 https://$host;
}
}
server {
listen 80;
server_name local.picturesofcarl.com www.picturesofcarl.com picturesofcarl.com;
return 301 https://$host;
}
server {
listen 443 ssl;
server_name local.picturesofcarl.com www.picturesofcarl.com picturesofcarl.com;
ssl_certificate /certs/picturesofcarl.com.pem;
ssl_certificate_key /certs/picturesofcarl.com.key.pem;
location / {
root /var/www/picturesofcarl;
}
location * {
return 301 https://$host;
}
}
server {
listen 3000;
server_name deploy.picturesofcarl.com deploy.bigbraincarl.com;
location / {
proxy_pass http://127.0.0.1:3000;
}
}