-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserver.conf
64 lines (51 loc) · 1.75 KB
/
server.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
server {
listen 80;
listen [::]:80;
server_name manifold.picolabs.io;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
root /home/ubuntu/Manifold/build;
server_name manifold.picolabs.io;
index index.html index.htm;
location / {
}
ssl_certificate /etc/letsencrypt/live/manifold.picolabs.io/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/manifold.picolabs.io/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_session_cache shared:SSL:5m;
ssl_session_timeout 1h;
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains" always;
}
server {
listen 9090 ssl http2;
listen [::]:9090 ssl http2;
server_name manifold.picolabs.io;
location / {
proxy_pass http://localhost:8080;
}
location ~* /api {
auth_basic "Admin Area. Access Restricted";
auth_basic_user_file /etc/apache2/.htpasswd;
proxy_pass http://localhost:8080;
}
location ~* /ruleset.html {
auth_basic "Admin Area. Access Restricted";
auth_basic_user_file /etc/apache2/.htpasswd;
proxy_pass http://localhost:8080;
}
ssl_certificate /etc/letsencrypt/live/manifold.picolabs.io/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/manifold.picolabs.io/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_session_cache shared:SSL:5m;
ssl_session_timeout 1h;
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains" always;
}
#