forked from research-software-directory/RSD-as-a-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
73 lines (56 loc) · 2.23 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
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
# example env file
# copy to .env and /frontend/env.local
# .env.local is consumed by frontent (Next)
# see https://nextjs.org/docs/basic-features/environment-variables
# .env is consumed by docker-compose.yml
# currently assigned values are for .env
# env.local values, if they differ, are placed as a comment above the env variable
# You also need to obtain/generate missing secrets
# ---- PUBLIC ENV VARIABLES -------------
# postgresql
# cosumed by services: database
POSTGRES_DB=rsd-db
POSTGRES_USER=rsd
# backend (postgREST)
# cosumed by services: backend
PGRST_DB_ANON_ROLE=web_anon
PGRST_DB_SCHEMA=public
PGRST_SERVER_PORT=3500
# postgREST api
# cosumed by services: authentication,frontend,auth-tests, scrapers
# .env.local: http://localhost/api/v1, .env: http://backend:3500
POSTGREST_URL=http://backend:3500
# RSD Auth module
# cosumed by services: frontend (api/fe)
# .env.local: http://localhost/auth, .env: http://auth:7000
RSD_AUTH_URL=http://auth:7000
# SURFCONEXT - TEST ENVIRONMENT
# cosumed by: authentication, frontend/utils/surfConext
NEXT_PUBLIC_SURFCONEXT_CLIENT_ID=www.research-software.nl
# cosumed by: authentication, frontend/utils/surfConext
NEXT_PUBLIC_SURFCONEXT_REDIRECT=http://localhost/auth/login/surfconext
# cosumed by: frontend/utils/surfConext
NEXT_PUBLIC_SURFCONEXT_WELL_KNOWN_URL=https://connect.test.surfconext.nl/.well-known/openid-configuration
# max requests to the GitHub API per run, runs 10 times per hour
# optional, comment out if not available, a default of 6 will be used
# consumed by: scrapers
MAX_REQUESTS_GITHUB=6
# ---- SECRETS ------ SECRETS -----------
# cosumed by services: database
# generate random/strong password
POSTGRES_PASSWORD=
# SURFCONEXT
# cosumed by services: authentication
# obtain the secret from SURFCONEXT dashboard
AUTH_SURFCONEXT_CLIENT_SECRET=
# POSTGREST JWT SECRET
# cosumed by services: authentication, frontend (auth-node), auth-tests, scrapers
# generate random/strong password with at least 32 characters
PGRST_JWT_SECRET=
# consumed by: scrapers
# optional, comment out if not available, should be of the form username:token
# obtain the secret from GITHUB dashboard
API_CREDENTIALS_GITHUB=
# consumed by: scrapers
# obtain the secret from ZENODO dashboard
ZENODO_ACCESS_TOKEN=