diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..313784f --- /dev/null +++ b/.env.example @@ -0,0 +1,45 @@ +# Domain +# This would be set to the production domain with an env var on deployment +# used by Traefik to transmit traffic and aqcuire TLS certificates +DOMAIN=furyhawk.lol +# To test the local Traefik config +# DOMAIN=localhost.dev.lan + +# Used by the backend to generate links in emails to the frontend +FRONTEND_HOST=https://dev.furyhawk.lol +# In staging and production, set this env var to the frontend host, e.g. +# FRONTEND_HOST=https://dashboard.dev.lan + +# Environment: local, staging, production +ENVIRONMENT=local + +PROJECT_NAME="Home Stack FastAPI Project" +STACK_NAME=home-stack-fastapi-project + +# Backend +BACKEND_CORS_ORIGINS="http://localhost,http://localhost:5173,http://localhost:5175,https://localhost,https://localhost:5173,http://dev.lan,http://dev.lan:5173,https://dev.furyhawk.lol" +SECRET_KEY=changethis +FIRST_SUPERUSER=admin@dev.lan +FIRST_SUPERUSER_PASSWORD=changethis + +# Emails +SMTP_HOST= +SMTP_USER= +SMTP_PASSWORD= +EMAILS_FROM_EMAIL=info@dev.lan +SMTP_TLS=True +SMTP_SSL=False +SMTP_PORT=587 + +# Postgres +POSTGRES_SERVER=db +POSTGRES_PORT=5432 +POSTGRES_DB=app +POSTGRES_USER=postgres +POSTGRES_PASSWORD=changethis + +SENTRY_DSN= + +# Configure these with your own Docker registry images +DOCKER_IMAGE_BACKEND=docker.io/furyhawk/home-stack-fastapi-project-backend +DOCKER_IMAGE_FRONTEND=docker.io/furyhawk/home-stack-fastapi-project-frontend diff --git a/.gitignore b/.gitignore index 548b5e8..f1d3c22 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ notebooks/chroma_db/ notebooks/llama-2-7b-chat.Q4_K_M.gguf esphome/config/ ai_stack/llamacpp.server/models/ +.env