Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
40 lines (35 loc) · 2.28 KB
/
Copy path.env.example
File metadata and controls
40 lines (35 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# OpenMES — Docker Compose configuration
# Skopiuj do .env i dostosuj wartości:
# cp .env.example .env
#
# Ten plik NIE trafia do repo (.gitignore).
# ── Domena i HTTPS ────────────────────────────────────────────────────────────
# Produkcja z domeną → Caddy automatycznie pobiera certyfikat Let's Encrypt
# Lokalne testy → zostaw localhost (HTTP, bez certyfikatu)
DOMAIN=localhost
APP_URL=http://localhost
# ── Tryb pracy ────────────────────────────────────────────────────────────────
# local → tryb deweloperski (logi debug, błędy na ekranie)
# production → tryb produkcyjny (logi error, błędy ukryte)
APP_ENV=production
APP_DEBUG=false
# ── Plant timezone ────────────────────────────────────────────────────────────
# Used by EVERY timestamp: screens, reports, shift boundaries and scheduled jobs.
# Set the plant's timezone, not the server's — otherwise a day's report covers
# different hours than the shift that was worked. Defaults to UTC.
#
# The installer asks for this too, and stores the answer in the database, which is
# what the application reads. That copy wins over this one — deliberately: on
# Docker, compose sets APP_TIMEZONE in the container environment and a real
# environment variable overrides this file, so the wizard could not change it
# otherwise. This value remains the fallback for installs that never ran the
# wizard, and for bare-metal deployments.
APP_TIMEZONE=Europe/Warsaw
# ── Baza danych ───────────────────────────────────────────────────────────────
POSTGRES_DB=openmmes
POSTGRES_USER=openmmes_user
POSTGRES_PASSWORD=CHANGE_ME_SECURE_PASSWORD
# ── Konto admina (tworzone automatycznie przy pierwszym starcie) ──────────────
ADMIN_USERNAME=admin
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=CHANGE_ME_SECURE_PASSWORD