forked from bcgov/met-public
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
473 changed files
with
21,390 additions
and
6,708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,46 @@ | ||
# GDX MET Analytics API Configuration | ||
# For more information on these values, please see the documentation | ||
# or analytics-api/src/analytics-api/config.py | ||
|
||
# Changes Flask's run mode and the set of env vars are used to configure the app. You should not need to change this here. | ||
FLASK_ENV=development | ||
|
||
# local db variables | ||
DATABASE_USERNAME=analytics | ||
DATABASE_PASSWORD=analytics | ||
DATABASE_NAME=met | ||
DATABASE_HOST=localhost | ||
DATABASE_PORT=5432 | ||
|
||
JWT_OIDC_WELL_KNOWN_CONFIG=https://localhost:8080/auth/realms/met/.well-known/openid-configuration | ||
JWT_OIDC_AUDIENCE=account | ||
JWT_OIDC_ISSUER=https://localhost:8080/auth/realms/met | ||
JWT_OIDC_ALGORITHMS=RS256 | ||
JWT_OIDC_JWKS_URI=https://localhost:8080/auth/realms/met/protocol/openid-connect/certs | ||
JWT_OIDC_CACHING_ENABLED=True | ||
JWT_OIDC_JWKS_CACHE_TIMEOUT=3000000 | ||
|
||
CORS_ORIGIN=http://localhost:3000,http://localhost:5000 | ||
USE_DEBUG=True # Enable a dev-friendly debug mode | ||
TESTING= # Handle errors normally (False) or raise exceptions (True) | ||
|
||
# CORS Settings | ||
CORS_ORIGINS=http://localhost:3000,http://localhost:5000 | ||
|
||
# Miscellaneous Settings | ||
SECRET_KEY="" # For Flask sessions. If unset, this value is randomized | ||
|
||
# Database Configuration | ||
DATABASE_HOST="localhost" | ||
DATABASE_PORT="5432" | ||
DATABASE_USERNAME="postgres" | ||
DATABASE_PASSWORD="postgres" | ||
DATABASE_NAME="met" | ||
#Default: set from above settings (this overrides them) | ||
SQLALCHEMY_ECHO= | ||
SQLALCHEMY_TRACK_MODIFICATIONS= | ||
|
||
# Keycloak configuration. | ||
KEYCLOAK_BASE_URL="" # auth-server-url | ||
KEYCLOAK_REALMNAME="" # realm | ||
|
||
# JWT OIDC configuration for authentication | ||
JWT_OIDC_AUDIENCE="" # resource | ||
JWT_OIDC_ISSUER="" # default: constructed from base url and realm name | ||
JWT_OIDC_WELL_KNOWN_CONFIG="" # default: constructed from issuer | ||
JWT_OIDC_JWKS_URI="" # default: constructed from issuer | ||
JWT_OIDC_ROLE_CLAIM=client_roles # Keycloak schema | ||
JWT_OIDC_CACHING_ENABLED=true # Enable caching of JWKS. | ||
JWT_OIDC_JWKS_CACHE_TIMEOUT=300 # Timeout for JWKS cache in seconds. | ||
|
||
# Test database settings | ||
# If unset, uses the same settings as the main database | ||
DATABASE_TEST_USERNAME= | ||
DATABASE_TEST_PASSWORD= | ||
DATABASE_TEST_NAME= | ||
DATABASE_TEST_HOST= | ||
DATABASE_TEST_PORT= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.