forked from geobeyond/fastgeoapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
81 lines (77 loc) · 2.55 KB
/
.env
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
ENV_STATE=dev
# base configs
# tiangolo uvicorn-gunicorn-fastapi-docker configs
MODULE_NAME=app.main
VARIABLE_NAME=app
#- GUNICORN_CONF="/app/custom_gunicorn_conf.py"
WORKERS_PER_CORE=1
WEB_CONCURRENCY=2
HOST=0.0.0.0
PORT=5000
LOG_LEVEL=info
#- WORKER_CLASS="uvicorn.workers.UvicornWorker"
TIMEOUT=120
# aws
AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
AWS_DEPLOY=true
AWS_LAMBDA_DEPLOY=true
AWS_SM_ENDPOINT_URL=https://secretsmanager.eu-west-1.amazonaws.com
AWS_SM_SERVICE_NAME=secretsmanager
AWS_REGION_NAME=eu-west-1
# dev configs
DEV_ROOT_PATH=
DEV_AWS_LAMBDA_DEPLOY=false
DEV_LOG_PATH=/tmp
DEV_LOG_FILENAME=fastgeoapi.log
DEV_LOG_LEVEL=debug
# loguru uses multiprocessing queue that breaks AWS lambda
DEV_LOG_ENQUEUE=true
DEV_LOG_ROTATION=1 days
DEV_LOG_RETENTION=1 months
DEV_LOG_FORMAT='<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> | <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> [id:{extra[request_id]}] - <level>{message}</level>'
# opa
DEV_OPA_ENABLED=false
DEV_OPA_URL=http://localhost:8383
# api-keys
DEV_API_KEY_ENABLED=false
DEV_PYGEOAPI_KEY_GLOBAL=pygeoapi
# oidc
DEV_APP_URI=http://localhost:5000
DEV_OIDC_WELL_KNOWN_ENDPOINT=http://localhost:8282/realms/pygeoapi/.well-known/openid-configuration
DEV_OIDC_CLIENT_ID=pygeoapi-client
DEV_OIDC_CLIENT_SECRET=2yholx8r3mqyUJaOoJiZhcqvQDQwmgyD
# pygeoapi
DEV_PYGEOAPI_BASEURL=http://localhost:5000
DEV_PYGEOAPI_CONFIG=pygeoapi-config.yml
DEV_PYGEOAPI_OPENAPI=pygeoapi-openapi.yml
# fastgeoapi
DEV_FASTGEOAPI_CONTEXT=/geoapi
# prod configs
PROD_ROOT_PATH=
PROD_AWS_LAMBDA_DEPLOY=true
PROD_LOG_PATH=/tmp
PROD_LOG_FILENAME=fastgeoapi.log
PROD_LOG_LEVEL=info
# loguru uses multiprocessing queue that breaks AWS lambda
PROD_LOG_ENQUEUE=false
PROD_LOG_ROTATION=1 days
PROD_LOG_RETENTION=1 months
PROD_LOG_FORMAT='<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> | <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> [id:{extra[request_id]}] - <level>{message}</level>'
# opa
PROD_OPA_ENABLED=false
PROD_OPA_URL=http://localhost:8383
# api-keys
PROD_API_KEY_ENABLED=true
PROD_PYGEOAPI_KEY_GLOBAL=pygeoapi
# oidc
PROD_APP_URI=http://localhost:5000
PROD_OIDC_WELL_KNOWN_ENDPOINT=http://localhost:8282/realms/pygeoapi/.well-known/openid-configuration
PROD_OIDC_CLIENT_ID=pygeoapi-client
PROD_OIDC_CLIENT_SECRET=2yholx8r3mqyUJaOoJiZhcqvQDQwmgyD
# pygeoapi
PROD_PYGEOAPI_BASEURL=http://localhost:5000
PROD_PYGEOAPI_CONFIG=pygeoapi-config.yml
PROD_PYGEOAPI_OPENAPI=pygeoapi-openapi.yml
# fastgeoapi
PROD_FASTGEOAPI_CONTEXT=/geoapi