-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.e2e.example
75 lines (67 loc) · 2.64 KB
/
.env.e2e.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
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
# E2E specific
ENABLE_E2E_MOCKS=true
# DB
DB_CLIENT=mysql
# This is an ip of `host.docker.internal` on Linux
DB_HOST=172.17.0.1
DB_PORT=13306
DB_DATABASE=dashboard-globalping
DB_USER=directus
DB_PASSWORD=password
# Collation mapping from here: https://github.com/sidorares/node-mysql2/blob/bded4980065319e58a4f87d828cc355fb79f5bd3/lib/constants/charsets.js#L199
DB_CHARSET_NUMBER=224
DB_DECIMAL_NUMBERS=true
# Directus
# https://docs.directus.io/self-hosted/config-options.html#general
PUBLIC_URL=http://127.0.0.1:18055
LOG_LEVEL=trace
CORS_ENABLED=true
CORS_ORIGIN=http://127.0.0.1:13000,http://127.0.0.1:13010
SESSION_COOKIE_NAME=dash_session_token
SESSION_COOKIE_SAME_SITE=lax
# Important: we assume all queries are unlimited by default
QUERY_LIMIT_DEFAULT=-1
# https://docs.directus.io/self-hosted/config-options.html#security
KEY=directus
SECRET=xxx
# https://docs.directus.io/self-hosted/config-options.html#sso-oauth2-and-openid
AUTH_GITHUB_CLIENT_ID=gh_client_id
AUTH_GITHUB_CLIENT_SECRET=gh_client_secret
# https://docs.directus.io/self-hosted/config-options.html#admin-account
ADMIN_PASSWORD=password
# Directus GitHub Auth
# https://docs.directus.io/self-hosted/config-options.html#sso-oauth2-and-openid
AUTH_PROVIDERS=github
AUTH_GITHUB_DRIVER=oauth2
AUTH_GITHUB_AUTHORIZE_URL=https://github.com/login/oauth/authorize
AUTH_GITHUB_ACCESS_URL=https://github.com/login/oauth/access_token
AUTH_GITHUB_PROFILE_URL=https://api.github.com/user
AUTH_GITHUB_ALLOW_PUBLIC_REGISTRATION=true
AUTH_GITHUB_SCOPE=read:user,user:email
AUTH_GITHUB_FIRST_NAME_KEY=name
AUTH_GITHUB_LAST_NAME_KEY=login
AUTH_GITHUB_IDENTIFIER_KEY=id
AUTH_GITHUB_REDIRECT_ALLOW_LIST=http://127.0.0.1:13010,http://127.0.0.1:13000
# GitHub API
# A classic token (not scoped), required permissions are: read:org, read:user
GITHUB_ACCESS_TOKEN=
# Generated during enabling of webhooks and passed to the app, to validate requests
# Create the webhook at https://github.com/sponsors/jsdelivr/globalping-dash-directus/webhooks/441768912/edit#deliveries
# See WEBHOOK_FLOW_ID in .env.example for the webhook URL
GITHUB_WEBHOOK_SECRET=
# Globalping API
GLOBALPING_URL=http://host.docker.internal:3000/v1
GP_SYSTEM_KEY=
# Geonames API
GEONAMES_USERNAME=
# App
CREDITS_PER_DOLLAR=2000
CREDITS_PER_ADOPTED_PROBE_DAY=150
ADOPTED_PROBES_CHECK_TIME_MAX_DEVIATION_MINS=5
# To trigger credits assignment probe need to be online >20 hours during the day. Current "Adopted probes status CRON" is "*/10 * * * *", which is 6 times an hour
# So required value is 20 * 6 = 120
ADOPTED_PROBES_REQUIRED_ONLINE_TIMES=120
# Are updated during `pnpm run init`
AUTH_GITHUB_DEFAULT_ROLE_ID=
AUTH_DISABLE_DEFAULT=false