-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx-ottemo-io.conf
54 lines (39 loc) · 1.31 KB
/
nginx-ottemo-io.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
server {
server_name ottemo.io www.ottemo.io;
listen 80;
keepalive_timeout 60;
if ($http_x_forwarded_proto = "http") {
return 301 https://$host$request_uri;
}
include ottemo.d/basic.conf;
root /home/ottemo/ottemo-io/dist;
location / {
root /home/ottemo/ottemo-io/dist;
index index.html index.htm;
try_files $uri $uri.html $uri/ @extensionless-html;
}
}
server {
# is not used by GCE ingress, only for internal testing
# real certificate will be managed by https://github.com/ottemo/playbooks/tree/master/kubernetes/kube-lego
server_name ottemo.io www.ottemo.io;
listen 443 ssl http2;
keepalive_timeout 60;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:ECDHE+AESGCM:EECDH+AES:!aNULL:!MD5:!DSS;
ssl_prefer_server_ciphers on;
ssl_stapling on;
ssl_stapling_verify on;
ssl_buffer_size 8k;
include ottemo.d/basic.conf;
root /home/ottemo/ottemo-io/dist;
location / {
root /home/ottemo/ottemo-io/dist;
index index.html index.htm;
try_files $uri $uri.html $uri/ @extensionless-html;
}
}