forked from feross/TheAnnoyingSite.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
35 lines (25 loc) · 1.08 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
server {
listen 50.116.11.184:443 http2 ssl;
server_name theannoyingsite.com;
ssl_certificate /etc/letsencrypt/live/theannoyingsite.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/theannoyingsite.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/theannoyingsite.com/chain.pem;
root /home/feross/www/theannoyingsite.com/static;
try_files $uri $uri/ =404;
include /home/feross/config/nginx/_server.include;
}
server {
listen 50.116.11.184:443 http2 ssl;
server_name www.theannoyingsite.com;
ssl_certificate /etc/letsencrypt/live/theannoyingsite.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/theannoyingsite.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/theannoyingsite.com/chain.pem;
rewrite ^ https://theannoyingsite.com$request_uri permanent;
include /home/feross/config/nginx/_server.include;
}
server {
listen 50.116.11.184:80;
server_name theannoyingsite.com www.theannoyingsite.com;
rewrite ^ https://theannoyingsite.com$request_uri permanent;
include /home/feross/config/nginx/_server.include;
}