forked from openMF/web-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.conf.template
More file actions
55 lines (46 loc) · 2.02 KB
/
default.conf.template
File metadata and controls
55 lines (46 loc) · 2.02 KB
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
server {
listen 80;
server_name ${FINERACT_DOMAIN};
server_tokens off;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header Access-Control-Allow_Credentials true;
add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH';
error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 420 422 423 424 426 428 429 431 444 449 450 451 500 501 502 503 504 505 506 507 508 509 510 511 /error.html;
proxy_cookie_path / "/; HttpOnly; Secure";
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location ^~ /_health {
types { } default_type "text/plain; charset=utf-8";
return 200 "UP";
}
location ^~ /self {
root /usr/share/nginx/html/self;
}
location ${FINERACT_BASE_URL} {
error_log /var/log/nginx/error.log error;
access_log off;
proxy_pass ${FINERACT_PROXY_URL};
proxy_http_version 1.1;
proxy_read_timeout 600;
proxy_set_header Upgrade ${DOLLAR}http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host ${DOLLAR}host;
proxy_set_header X-Forwarded-Host ${DOLLAR}host:${DOLLAR}server_port;
proxy_set_header X-Forwarded-Server ${DOLLAR}host;
proxy_set_header X-Forwarded-Proto ${DOLLAR}scheme;
proxy_set_header X-Forwarded-For ${DOLLAR}proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP ${DOLLAR}remote_addr;
#proxy_pass_header X-XSRF-TOKEN;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}