-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
38 lines (30 loc) · 2.05 KB
/
.env.example
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
OA2T_APP_ENV=dev
OA2T_HTTP_PORT=8089 # external http port of container
OA2T_HTTP_ADDRESS=0.0.0.0:${OA2T_HTTP_PORT} # server socket bind address
OA2T_HTTP_ROOT_URL=http://192.168.1.10:8089/ # url with default hostname
OA2T_POST_LOGIN_URL= # if empty then url dynamically detected
# multiple backend types can be configured
#OA2T_LOCATIONS='[["/", "proxy", "http://172.17.0.1:80"]]' # secured http backend
#OA2T_LOCATIONS='[["/", "browser", "/app"]]' # server file browser backend. directory navigation and file viewer.
#OA2T_LOCATIONS='[["/", "statics", "/app"]]' # http file server backend
#OA2T_LOCATIONS='[["/index.php", "php", "/index.php"]]' # php runner backend
OA2T_ACCESS_CONTROL='{"/": true}' # access control rules. by default authorization is required, but some locations can be configured for public access
OA2T_EMAIL_DOMAINS=* # allowed user email domains, comma separated values
OA2T_EMAILS_ALLOWED=* # allowed user emails, comma separated values
OA2T_COOKIE_SECURE=false # cookie secure flag
OA2T_COOKIE_EXPIRE=PT33H # cookie and session duration, in PHP DateInterval format
OA2T_PROVIDERS='["yandex", "keycloak"]' # configured OAuth providers
OA2T_TRUSTED_FORWARDERS=127.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # accept forwarded-x http headers from these proxies
OA2T_ACCESS_LOG=./access.log # access log file name
OA2T_APP_LOG=php://stdout # application log file name
## OAuth2 providers configuration
OA2T_PROVIDERS_GOOGLE_CLIENT_ID=
OA2T_PROVIDERS_GOOGLE_CLIENT_SECRET=
OA2T_PROVIDERS_YANDEX_CLIENT_ID=
OA2T_PROVIDERS_YANDEX_CLIENT_SECRET=
OA2T_PROVIDERS_KEYCLOAK_CLIENT_ID=oa2tier
OA2T_PROVIDERS_KEYCLOAK_CLIENT_SECRET=1234512345asdfASDF
OA2T_PROVIDERS_KEYCLOAK_REALM_URL=http://192.168.1.10:8080/realms/test
OA2T_PROVIDERS_KEYCLOAK_SCOPES='["openid", "profile", "email"]'
OA2T_PROVIDERS_GITHUB_CLIENT_ID=
OA2T_PROVIDERS_GITHUB_CLIENT_SECRET=