Magnifica_S-Pro/.env.example

109 lines
2.8 KiB
Plaintext

# ================================================================
# ESP32-C3 universal launcher configuration
# Copy to /.env on the ESP32. NEVER commit the real secrets file.
# ================================================================
PRINT_CONFIG_ON_BOOT=false
# ---------- Wi-Fi ----------
WIFI_ENABLED=true
WIFI_SSID=YourSSID
WIFI_PASSWORD=YourWiFiPassword
WIFI_HOSTNAME=magnifica-s-pro
WIFI_CONNECT_ON_BOOT=true
WIFI_REQUIRED=true
WIFI_TIMEOUT_SECONDS=20
WIFI_POWER_SAVE=true
# false = Wi-Fi is switched off after updater network tasks when the app
# itself does not need permanent Wi-Fi.
WIFI_KEEP_CONNECTED=true
NTP_SYNC_ENABLED=true
NTP_HOST=pool.ntp.org
# ---------- Bluetooth ----------
# ESP32-C3 supports BLE only, not Bluetooth Classic.
BLUETOOTH_ENABLED=false
BLUETOOTH_NAME=Coffee
BLUETOOTH_ADVERTISE=true
BLUETOOTH_ADV_INTERVAL_MS=2500
# ---------- UART ----------
UART_ENABLED=false
UART_ID=1
UART_BAUD=115200
UART_BITS=8
UART_PARITY=none
UART_STOP_BITS=1
UART_TX_GPIO=20
UART_RX_GPIO=21
# ---------- Self-update ----------
UPDATE_ENABLED=true
# Remote manifest requests are intentionally infrequent.
UPDATE_CHECK_INTERVAL_HOURS=24
# A due update will not start until the application has been idle this long.
UPDATE_MIN_IDLE_SECONDS=900
# If due but busy, this is only a LOCAL sleep before reconsidering idleness.
# It does NOT contact the repository every 15 minutes unless the device is idle.
UPDATE_BUSY_RETRY_SECONDS=900
# Failed network/repository attempts wait before another remote attempt.
UPDATE_FAILURE_RETRY_SECONDS=3600
# Boot checks still obey the boot delay and idle requirement.
UPDATE_CHECK_ON_BOOT=true
UPDATE_BOOT_DELAY_SECONDS=180
UPDATE_HTTP_TIMEOUT_SECONDS=20
UPDATE_MAX_FILE_BYTES=262144
UPDATE_ALLOW_HTTP=false
# ---------- Repository ----------
# auto | gitea | forgejo | github | gitlab | bitbucket | generic
UPDATE_PROVIDER=gitea
UPDATE_REPO_URL=https://git.rolfsvaag.no/frarol96/Magnifica_S-Pro
UPDATE_BRANCH=main
UPDATE_MANIFEST_PATH=firmware/manifest.json
# Optional overrides for unusual/self-hosted raw URL layouts:
# UPDATE_MANIFEST_URL=https://host/specific/path/manifest.json
# UPDATE_RAW_BASE_URL=https://host/specific/raw/base/
# ---------- Authentication ----------
# none/public | auto | basic | bearer | token | header
#
# Private Gitea/Forgejo:
# UPDATE_AUTH_MODE=auto
# UPDATE_TOKEN=...
#
# Private GitLab:
# UPDATE_AUTH_MODE=auto
# UPDATE_TOKEN=...
#
# Private GitHub:
# UPDATE_AUTH_MODE=auto
# UPDATE_TOKEN=...
#
# Bitbucket app password / generic Basic auth:
# UPDATE_AUTH_MODE=basic
# UPDATE_USERNAME=...
# UPDATE_PASSWORD=...
#
# Custom auth header:
# UPDATE_AUTH_MODE=header
# UPDATE_AUTH_HEADER=X-Api-Key
# UPDATE_AUTH_PREFIX=
# UPDATE_TOKEN=...
UPDATE_AUTH_MODE=none
UPDATE_TOKEN=
UPDATE_USERNAME=
UPDATE_PASSWORD=
UPDATE_AUTH_HEADER=Authorization
UPDATE_AUTH_PREFIX=