48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
# SXCHNGE-owned Mongo database and JWT key. Never point these at Sendico.
|
|
http_server:
|
|
listen_address: 127.0.0.1:8082
|
|
read_header_timeout: 5
|
|
shutdown_timeout: 10
|
|
database:
|
|
driver: mongodb
|
|
settings:
|
|
uri_env: SXCHNGE_MONGO_URI
|
|
database: sxchnge
|
|
api:
|
|
# Optional public Sendico facts integration. Enable with provisioned values;
|
|
# omit this block to retain local-only sign-up. See docs/signup-facts.md.
|
|
# sendico:
|
|
# api_url: https://sendico.example/api/v1
|
|
# organization_ref: <sxchnge-organization-object-id>
|
|
# source_account_ref: <integration-account-object-id>
|
|
# token_file: /run/sxchnge/sendico-token
|
|
# Optional: omit for v1 at SXCHNGE_API_ENDPOINT; [] disables application APIs.
|
|
# versions:
|
|
# - version: v1
|
|
# path: /api/v1
|
|
middleware:
|
|
domain_env: SXCHNGE_DOMAIN
|
|
api_endpoint_env: SXCHNGE_API_ENDPOINT
|
|
api_protocol_env: SXCHNGE_API_PROTOCOL
|
|
signature:
|
|
algorithm: HS256
|
|
secret_key_env: SXCHNGE_JWT_SECRET
|
|
CORS:
|
|
allowed_origins: ["http://localhost:5126"]
|
|
allowed_methods: ["GET", "POST", "PATCH", "DELETE", "OPTIONS"]
|
|
allowed_headers: ["Content-Type", "Authorization", "X-Auth-Transport", "X-CSRF-Protection"]
|
|
allow_credentials: true
|
|
max_age: 300
|
|
token:
|
|
expiration_hours:
|
|
account: 1
|
|
refresh: 720
|
|
length: 32
|
|
password:
|
|
token_length: 32
|
|
check:
|
|
min_length: 12
|
|
notifications:
|
|
address: localhost:8083
|
|
activation_url: http://localhost:5126/verify-email
|