File tree 5 files changed +18
-20
lines changed
5 files changed +18
-20
lines changed Original file line number Diff line number Diff line change 1
1
NODE_ENV = "development" # development | production
2
2
3
3
# API URL
4
- NEXT_PUBLIC_API_URL = ' http://localhost:3001'
4
+ NEXT_PUBLIC_API_URL = 'http://localhost:3001' # enterprise API service url
5
5
6
6
# AUTH 0 CONFIG
7
- AUTH0_BASE_URL = ' http://localhost:3000'
8
- AUTH0_SCOPE = ' openid profile email offline_access'
9
- AUTH0_SECRET = ' use [openssl rand -hex 32] to generate a 32 bytes value'
10
- AUTH0_ISSUER_BASE_URL = ' {yourIssuer}'
11
- AUTH0_API_AUDIENCE = ' {yourAudience}'
12
- AUTH0_CLIENT_ID = ' {yourClientId}'
13
- AUTH0_CLIENT_SECRET = ' {yourClientSecret}'
7
+ AUTH0_BASE_URL = 'http://localhost:3000' # admin-console url
8
+ AUTH0_SECRET = # use [openssl rand -hex 32] to generate a 32 bytes value
9
+ AUTH0_ISSUER_BASE_URL = # your auth0 issuer url, i.e.: https://auth.dataherald.com/
10
+ AUTH0_API_AUDIENCE = # your auth0 API audience, i.e.: https://dataherald.us.auth0.com/api/v2/
11
+ AUTH0_CLIENT_ID = # your auth0 application client ID
12
+ AUTH0_CLIENT_SECRET = # your auth0 application client secret
14
13
15
14
# (OPTIONAL) Posthog Analytics
16
15
NEXT_PUBLIC_POSTHOG_DISABLED = ' true'
Original file line number Diff line number Diff line change 1
- ENGINE_URL = http://{DOCKER_CONTAINER_NAME:PORT}/api/v1 # example: http://engine/api/v1 (port 80 by default)
1
+ ENGINE_URL = # http://{DOCKER_CONTAINER_NAME:PORT}/api/v1 -- example: http://engine/api/v1 (port 80 by default)
2
2
MONGODB_DB_NAME = dataherald
3
3
MONGODB_URI = mongodb://admin:admin@mongodb:27017
4
4
5
5
# The encryption key should be the same as the one used in engine
6
6
ENCRYPT_KEY =
7
7
8
- AUTH0_DOMAIN = ' {yourDomain} '
9
- AUTH0_ISSUER = ' https://{yourDomain}/ '
10
- AUTH0_API_AUDIENCE = ' {yourAudience} '
8
+ AUTH0_DOMAIN = # your auth0 domain, i.e.: auth.dataherald.com
9
+ AUTH0_ISSUER_BASE_URL = # your auth0 issuer url, i.e.: https://auth.dataherald.com/
10
+ AUTH0_API_AUDIENCE = # your auth0 API audience, i.e.: https://dataherald.us.auth0.com/api/v2/
11
11
# AUTH0_DISABLED creates a mock authentication token type for testing purposes
12
12
# you can provide an email as the bearer token, note that the admin console will not be able to authenticate
13
13
AUTH0_DISABED = False
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ docker-compose up
33
33
To connect to Auth0 you will need to fill in the following environment variables before running the app:
34
34
```
35
35
AUTH0_DOMAIN=
36
- AUTH0_ISSUER =
36
+ AUTH0_ISSUER_BASE_URL =
37
37
AUTH0_API_AUDIENCE=
38
38
AUTH0_DISABED=False
39
39
```
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class AuthSettings(BaseSettings):
64
64
auth0_domain : str = os .environ .get ("AUTH0_DOMAIN" )
65
65
auth0_algorithms : str = os .environ .get ("AUTH0_ALGORITHMS" , "RS256" )
66
66
auth0_audience : str = os .environ .get ("AUTH0_API_AUDIENCE" )
67
- auth0_issuer : str = os .environ .get ("AUTH0_ISSUER " )
67
+ auth0_issuer : str = os .environ .get ("AUTH0_ISSUER_BASE_URL " )
68
68
69
69
def __getitem__ (self , key : str ) -> Any :
70
70
return getattr (self , key )
Original file line number Diff line number Diff line change @@ -15,11 +15,10 @@ SOCKET_MODE=true
15
15
# ###############################################################################
16
16
# ###############################################################################
17
17
18
- AUTH0_DOMAIN = ' {yourDomain} '
19
- AUTH0_API_AUDIENCE = ' {yourAudience} '
20
- AUTH0_CLIENT_ID = ' {yourClientId} '
21
- AUTH0_CLIENT_SECRET = ' {yourClientSecret} '
18
+ AUTH0_DOMAIN = # your auth0 domain, i.e.: auth.dataherald.com
19
+ AUTH0_API_AUDIENCE = # your auth0 API audience, i.e.: https://dataherald.us.auth0.com/api/v2/
20
+ AUTH0_CLIENT_ID = # your auth0 application client ID
21
+ AUTH0_CLIENT_SECRET = # your auth0 application client secret
22
22
23
-
24
- API_URL = http://{DOCKER_CONTAINER_NAME:PORT} # example: http://api:3001
23
+ API_URL = # http://{DOCKER_CONTAINER_NAME:PORT} -- example: http://api:3001
25
24
PORT = 3000
You can’t perform that action at this time.
0 commit comments