38 lines
1.7 KiB
Bash
38 lines
1.7 KiB
Bash
# Copy to .env for a fresh install; never replace an existing deployment's keys.
|
|
# See docs/PUBLIC_RELEASE.md. The localhost settings below are for local HTTP only.
|
|
# Never deploy the example secret placeholders.
|
|
APP_NAME=Magent
|
|
|
|
# Public Docker Hub template: choose a published prod-<commit> tag or sha256 digest.
|
|
# Intentionally no default: do not silently pull a mutable or incompatible image.
|
|
MAGENT_IMAGE=
|
|
MAGENT_BIND_ADDRESS=127.0.0.1
|
|
MAGENT_HTTP_PORT=3000
|
|
|
|
# For public hosting set BOTH URLs to your exact HTTPS origin (no trailing slash),
|
|
# for example https://magent.example.com, and AUTH_COOKIE_SECURE=true below.
|
|
CORS_ALLOW_ORIGIN=http://localhost:3000
|
|
MAGENT_APPLICATION_URL=http://localhost:3000
|
|
# Backend address is internal to the combined container, not a browser endpoint.
|
|
MAGENT_API_URL=http://127.0.0.1:8000
|
|
SQLITE_PATH=/app/data/magent.db
|
|
LOG_FILE=/app/data/magent.log
|
|
LOG_FORMAT=text
|
|
|
|
# Generate independent values as documented in docs/PUBLIC_RELEASE.md.
|
|
# Keep both unchanged when upgrading or restoring an offline data-volume backup.
|
|
JWT_SECRET=replace-with-at-least-32-random-characters
|
|
SETTINGS_ENCRYPTION_KEY=replace-with-a-valid-fernet-key
|
|
ADMIN_USERNAME=admin
|
|
# Recommended fresh install: generate a separate random setup token. Open /setup
|
|
# to create the administrator and connect your apps; remove this after finishing.
|
|
SETUP_TOKEN=replace-with-a-separate-random-setup-token
|
|
# Alternatively pre-create the first admin with a unique password (12+ chars).
|
|
# Leave blank to create the account using the setup wizard and SETUP_TOKEN.
|
|
ADMIN_PASSWORD=
|
|
|
|
# false is ONLY for local HTTP; public HTTPS deployments must use true.
|
|
AUTH_COOKIE_SECURE=false
|
|
AUTH_COOKIE_SAMESITE=strict
|
|
API_DOCS_ENABLED=false
|