-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.docker.e2e.example
More file actions
86 lines (76 loc) · 3.11 KB
/
Copy path.env.docker.e2e.example
File metadata and controls
86 lines (76 loc) · 3.11 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
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
# E2E specific
ENABLE_E2E_MOCKS=true
# DB
DB_CLIENT=mysql
DB_HOST=mariadb
DB_PORT=3306
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://localhost:28055
DASH_URL=http://localhost:13010
LOG_LEVEL=trace
CORS_ENABLED=false
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_EMAIL=admin@example.com
ADMIN_PASSWORD=password
# Elastic APM
ELASTIC_APM_ACTIVE=false
ELASTIC_APM_ENVIRONMENT=e2e
# 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,read:org
AUTH_GITHUB_FIRST_NAME_KEY=name
AUTH_GITHUB_LAST_NAME_KEY=login
AUTH_GITHUB_IDENTIFIER_KEY=id
AUTH_GITHUB_REDIRECT_ALLOW_LIST=http://localhost:23000/auth/callback,http://localhost:23010/auth/callback,http://127.0.0.1:23010/auth/callback
# 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
GITHUB_WEBHOOK_SECRET=
# ID that will be used for the flow. Any valid UUID.
# The final URL for the webhook is ${host}/flows/trigger/${WEBHOOK_FLOW_ID}
WEBHOOK_FLOW_ID=e8a4c2b2-3ed4-4ddc-b98e-34c1952c2323
# Globalping API
GLOBALPING_URL=http://host.docker.internal:3000/v1
GP_SYSTEM_KEY=system
# Resend
RESEND_API_KEY=
# Geonames API
GEONAMES_USERNAME=
# App
CREDITS_PER_DOLLAR=4000
CREDITS_PER_ADOPTED_PROBE_DAY=150
CREDITS_BONUS_PER_100_DOLLARS=5
MAX_CREDITS_BONUS=1500
# To trigger credits assignment probe need to be online >20 hours during the day. Current "Probes status CRON" is "*/10 * * * *", which is 6 times an hour
# So required value is 20 * 6 = 120
ADOPTED_PROBES_REQUIRED_ONLINE_TIMES=120
TARGET_NODE_VERSION=v22.22.3 # Same format as in gp_probes.nodeVersion. Make sure to update the triggers in a new migration.
TARGET_HW_DEVICE_FIRMWARE=v2.0 # Same format as in gp_probes.hardwareDeviceFirmware. Make sure to update the triggers in a new migration.
# Are updated during `pnpm run init`
AUTH_GITHUB_DEFAULT_ROLE_ID=
AUTH_DISABLE_DEFAULT=false