mirror of
https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
synced 2024-11-24 23:38:50 +00:00
5e40d7944a
- fixed issue with not loading env variables inside to fastapi - fixed to not using "python main.py" which meant for development
29 lines
782 B
Plaintext
29 lines
782 B
Plaintext
# Toggle FastAPI debug mode
|
|
DEBUG=false
|
|
|
|
# Where the client can find the DLS server
|
|
## DLS_URL should be a hostname
|
|
LISTEN_IP="0.0.0.0"
|
|
DLS_URL="localhost.localdomain"
|
|
DLS_PORT=8443
|
|
CORS_ORIGINS="https://$DLS_URL:$DLS_PORT"
|
|
|
|
# Lease expiration in days
|
|
LEASE_EXPIRE_DAYS=90
|
|
|
|
# Database location
|
|
## https://docs.sqlalchemy.org/en/14/core/engines.html
|
|
DATABASE="sqlite:////var/lib/fastapi-dls/db.sqlite"
|
|
|
|
# UUIDs for identifying the instance
|
|
SITE_KEY_XID="<<sitekey>>"
|
|
INSTANCE_REF="<<instanceref>>"
|
|
|
|
# Site-wide signing keys
|
|
INSTANCE_KEY_RSA="/var/lib/fastapi-dls/instance.private.pem"
|
|
INSTANCE_KEY_PUB="/var/lib/fastapi-dls/instance.public.pem"
|
|
|
|
# TLS certificate
|
|
INSTANCE_SSL_CERT="/var/lib/fastapi-dls/cert/webserver.crt"
|
|
INSTANCE_SSL_KEY="/var/lib/fastapi-dls/cert/webserver.key"
|