-
Notifications
You must be signed in to change notification settings - Fork 3
/
default.conf.template
65 lines (58 loc) · 3.62 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
56
57
58
59
60
61
62
63
64
65
server {
listen 80;
###########################################################################
#### default
###########################################################################
location / {
proxy_pass https://dgca-booking-demo-frontend-eu-test.cfapps.eu10.hana.ondemand.com;
}
###########################################################################
#### booking service
###########################################################################
location /api/booking {
proxy_set_header Authorization "PROXY_AUTH";
proxy_pass https://dgca-booking-demo-backend-eu-test.cfapps.eu10.hana.ondemand.com/booking;
}
location /api/boardingpass {
proxy_set_header Authorization "PROXY_AUTH";
proxy_pass https://dgca-booking-demo-backend-eu-test.cfapps.eu10.hana.ondemand.com/boardingpass;
}
location /api/validationStatus {
proxy_set_header Authorization "PROXY_AUTH";
proxy_pass https://dgca-booking-demo-backend-eu-test.cfapps.eu10.hana.ondemand.com/validationStatus;
}
###########################################################################
#### validation decorator service
###########################################################################
location /api/identity {
proxy_pass https://dgca-validation-decorator-eu-test.cfapps.eu10.hana.ondemand.com/identity;
}
location /api/token {
proxy_pass https://dgca-validation-decorator-eu-test.cfapps.eu10.hana.ondemand.com/token;
}
location /api/initialize {
proxy_set_header Authorization "PROXY_AUTH";
proxy_pass https://dgca-validation-decorator-eu-test.cfapps.eu10.hana.ondemand.com/initialize;
}
location /api/reject {
proxy_pass https://dgca-validation-decorator-eu-test.cfapps.eu10.hana.ondemand.com/reject;
}
location /api/status {
proxy_pass https://dgca-validation-decorator-eu-test.cfapps.eu10.hana.ondemand.com/status;
}
location /api/callback {
proxy_pass https://dgca-validation-decorator-eu-test.cfapps.eu10.hana.ondemand.com/callback;
}
location /api/devStatusNOK {
default_type application/json;
return 200 '{"result":"NOK","results":[{"identifier":"KID","result":"NOK","type":"TechnicalVerification","details":"unknown dcc signing kid"}],"confirmation":"eyJraWQiOiJSQU0yU3R3N0VrRT0iLCJhbGciOiJFUzI1NiJ9.eyJqdGkiOiJkODBmMzg0Yy05MjczLTQ2ZDctYjg4Mi1mOTM4OTVkMTQ2NmMiLCJzdWIiOiIwZmQwYzExZC0wZTFhLTQwODQtOTc1ZC00ZTgyMzhkM2Y0ZTkiLCJpYXQiOjE2MzI3NTM3NzksInJlc3VsdCI6Ik5PSyJ9.OuJTFkqwongKa5ZoqvY9JqEC_PuE-IIW2efFTeCvJpXbtaSaT5gDtD_CwZEy0Kq7Xz8EWAQPgUDcO9bQCx18CA"}';
}
location /api/devStatusOK {
default_type application/json;
return 200 '{"result":"OK","results":[],"confirmation":"eyJraWQiOiJSQU0yU3R3N0VrRT0iLCJhbGciOiJFUzI1NiJ9.eyJqdGkiOiJkODBmMzg0Yy05MjczLTQ2ZDctYjg4Mi1mOTM4OTVkMTQ2NmMiLCJzdWIiOiIwZmQwYzExZC0wZTFhLTQwODQtOTc1ZC00ZTgyMzhkM2Y0ZTkiLCJpYXQiOjE2MzI3NTM3NzksInJlc3VsdCI6Ik5PSyJ9.OuJTFkqwongKa5ZoqvY9JqEC_PuE-IIW2efFTeCvJpXbtaSaT5gDtD_CwZEy0Kq7Xz8EWAQPgUDcO9bQCx18CA"}';
}
location /api/devStatusCHK {
default_type application/json;
return 200 '{"result":"CHK","results":[{"identifier":"KID","result":"CHK","type":"TechnicalVerification","details":"Dummy Result. Something to clarify"}],"confirmation":"eyJraWQiOiJSQU0yU3R3N0VrRT0iLCJhbGciOiJFUzI1NiJ9.eyJqdGkiOiJkODBmMzg0Yy05MjczLTQ2ZDctYjg4Mi1mOTM4OTVkMTQ2NmMiLCJzdWIiOiIwZmQwYzExZC0wZTFhLTQwODQtOTc1ZC00ZTgyMzhkM2Y0ZTkiLCJpYXQiOjE2MzI3NTM3NzksInJlc3VsdCI6Ik5PSyJ9.OuJTFkqwongKa5ZoqvY9JqEC_PuE-IIW2efFTeCvJpXbtaSaT5gDtD_CwZEy0Kq7Xz8EWAQPgUDcO9bQCx18CA"}';
}
}