-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.conf.template
55 lines (39 loc) · 1.04 KB
/
default.conf.template
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
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
map $http_user_agent $log_ua {
~Zabbix 0;
default 1;
}
server {
listen ${PROXY_PORT} ssl;
ssl_session_timeout 5m;
ssl_protocols TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
ssl_certificate /etc/ssl/tls.crt;
ssl_certificate_key /etc/ssl/tls.key;
access_log /var/log/nginx/access.log main if=$log_ua;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:${APP_PORT};
proxy_read_timeout 20d;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
proxy_redirect / $scheme://$host/;
}
}
server {
listen 8081;
location /healthz {
return 200 '';
access_log off;
log_not_found off;
}
}