generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.conf
47 lines (37 loc) · 1.24 KB
/
config.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
events {}
http {
server_tokens off;
map $http_authorization $auth_header {
default "";
"~^(.*)" $1;
}
proxy_set_header Authorization $auth_header;
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_set_header X-Forwarded-Port $server_port;
server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
proxy_pass http://webapp:3000;
}
}
server {
http2 on;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
ssl_certificate /etc/letsencrypt/live/kiwiq.run.place/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/kiwiq.run.place/privkey.pem;
ssl_dhparam /etc/nginx/dhparams.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
ssl_session_timeout 10m;
ssl_session_cache shared:SSL:10m;
location / {
proxy_pass http://webapp:3000;
}
}
}