-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env
124 lines (109 loc) · 2.36 KB
/
.env
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
LICENSE_CONSENT=true
LOG_PRETTY=true
#LOG_FILE=prxi-%DATE%.log
# TLS_FILE_KEY=test/key.pem
# TLS_STRING_STR_TEST=test
# TLS_NUMBER_NUMBER_TEST='1'
KC_TEST_USER=test
KC_TEST_USER_PASSWORD=test
PROXY_REQUEST_TIMEOUT=100
HOST_URL=http://localhost:3000
UPSTREAM_URL=http://localhost:7001
LOG_LEVEL=debug
REDIRECT_PAGE_REQUEST_ON_404=http://localhost:7001/e404
REDIRECT_PAGE_REQUEST_ON_403=http://localhost:7001/e403
OPENID_CONNECT_DISCOVER_URL=http://localhost:8080/realms/test/.well-known/openid-configuration
OPENID_CLIENT_ID=test_client
OPENID_CLIENT_SECRET='1f88bd14-7e7f-45e7-be27-d680da6e48d8'
MAPPINGS_PUBLIC='[
{
"pattern": "/public/.*"
},
{
"pattern": "/favicon.ico"
}
]'
MAPPINGS_WS='[
{
"pattern": "/.*"
}
]'
MAPPINGS_API='[
{
"pattern": "^/api/.*$",
"methods": ["GET", "POST", "PUT", "DELETE"],
"auth": {
"claims": {
"realm": [ "test_role" ]
}
},
"exclude": [
{
"pattern": "/api/exclude/.*",
"methods": ["GET", "POST", "PUT", "DELETE"]
}
]
},
{
"pattern": "/api-optional/.*"
},
{
"pattern": "/forbidden-api/.*",
"auth": {
"claims": {
"realm": [ "rejected" ]
}
}
}
]'
MAPPINGS_PAGES='[
{
"pattern": "/",
"auth": {
"claims": {
"realm": [ "test_role" ]
}
}
},
{
"pattern": "/pages/.*",
"auth": {
"mode": "all",
"claims": {
"realm": [ "test_role" ],
"account": [ "manage-account" ]
}
}
},
{
"pattern": "/forbidden-pages/.*",
"auth": {
"claims": {
"realm": [ "rejected" ]
}
}
},
{
"pattern": "/auth-required-pages/.*",
"auth": {
"required": true
}
}
]'
JWT_AUTH_CLAIM_PATHS='{
"realm": ["realm_access", "roles"],
"account": ["resource_access", "account", "roles"]
}'
JWT_PROXY_CLAIM_PATHS='{
"username": ["preferred_username"],
"realmRoles": ["realm_access", "roles"]
}'
HEADERS_CLAIMS_PROXY=prxi-user-claims
JWT_META_TOKEN_SECRET=abc
HEADERS_META=x-prxi-meta
WHOAMI_API_PATH=/_prxi/whoami
PERMISSIONS_API_PATH=/_prxi/permissions
# For AWS Cognito:
# OPENID_CONNECT_DISCOVER_URL=https://cognito-idp.{region}.amazonaws.com/{userPoolId}/.well-known/openid-configuration
# MAPPINGS_PAGES='[{"pattern": ".*", "claims": {"cognito": ["Test Group"]}}]'
# JWT_AUTH_CLAIM_PATHS='{"cognito": ["cognito:groups"]}'