forked from FreshPorts/freshports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvhosts.conf.nginx.sample
55 lines (37 loc) · 1.33 KB
/
vhosts.conf.nginx.sample
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
# this sets rate limiting
limit_req_zone $binary_remote_addr zone=auth_limit:20m rate=5r/m;
server {
listen 127.163.0.80:80;
listen [fd00::80]:80;
server_name freshports.org;
include "/usr/local/etc/freshports/virtualhost-common.conf";
return 301 https://$server_name$request_uri;
}
server {
listen 127.163.0.80:80;
listen [fd00::80]:80;
server_name aws-1.freshports.org;
include "/usr/local/etc/freshports/virtualhost-common.conf";
return 301 https://$server_name$request_uri;
}
server {
listen 127.163.0.80:443 ssl;
listen [fd00::80]:443 ssl;
http2 on;
server_name freshports.org;
include "/usr/local/etc/freshports/virtualhost-common.conf";
include "/usr/local/etc/freshports/virtualhost-common-ssl.conf";
ssl_certificate /usr/local/etc/ssl/aws-1.freshports.org.fullchain.cer;
ssl_certificate_key /usr/local/etc/ssl/aws-1.freshports.org.key;
return 301 https://$server_name$request_uri;
}
server {
listen 127.163.0.80:443 ssl;
listen [fd00::80]:443 ssl;
http2 on;
server_name aws-1.freshports.org;
include "/usr/local/etc/freshports/virtualhost-common.conf";
include "/usr/local/etc/freshports/virtualhost-common-ssl.conf";
ssl_certificate /usr/local/etc/ssl/aws-1.freshports.org.fullchain.cer;
ssl_certificate_key /usr/local/etc/ssl/aws-1.freshports.org.key;
}