2026-04-11 09:48:33 +07:00
|
|
|
# ============================================================
|
|
|
|
|
# LMS Configuration
|
|
|
|
|
# ============================================================
|
|
|
|
|
|
2026-04-01 09:37:09 +07:00
|
|
|
# ── Identitas LMS ──────────────────────────────
|
|
|
|
|
# Variabel ini tampil di frontend (navbar, footer, title)
|
2026-04-11 09:48:33 +07:00
|
|
|
APP_BAR_TITLE=LMS elemes DEVELOPMENT TEST
|
|
|
|
|
COPYRIGHT_TEXT=Nama Sekolah @ 2026
|
|
|
|
|
PAGE_TITLE_SUFFIX=LMS elemes DEVELOPMENT TEST
|
|
|
|
|
CURSOR_OFFSET_Y=50
|
2026-04-01 09:37:09 +07:00
|
|
|
|
2026-04-11 09:48:33 +07:00
|
|
|
# ── Konfigurasi Internal Backend ───────────────
|
|
|
|
|
# Penamaan folder & file ini dipakai didalam lingkup container
|
2026-04-01 09:37:09 +07:00
|
|
|
CONTENT_DIR=content
|
2026-04-21 15:13:16 +07:00
|
|
|
# Domain frontend yang diizinkan untuk CORS (misal: http://localhost:3000)
|
|
|
|
|
ORIGIN=http://localhost:3000
|
2026-04-22 12:57:54 +07:00
|
|
|
COOKIE_SECURE=false
|
2026-04-21 15:13:16 +07:00
|
|
|
COMPILER_WORKER_URL=http://compiler-worker:8080/execute
|
2026-04-01 09:37:09 +07:00
|
|
|
|
2026-04-11 09:48:33 +07:00
|
|
|
# ── Tailscale (opsional, untuk jaringan P2P) ───
|
|
|
|
|
ELEMES_HOST=sinau-c-hostname-kamu
|
2026-04-01 09:37:09 +07:00
|
|
|
TS_AUTHKEY=tskey-auth-xxxx
|
|
|
|
|
|
2026-04-11 09:48:33 +07:00
|
|
|
# ── Flask (opsional: untuk dev mode lokal) ─────
|
|
|
|
|
FLASK_DEBUG=false
|
2026-08-08 11:57:08 +07:00
|
|
|
|
|
|
|
|
# ── PostgreSQL (source of truth sejak migrasi CSV→DB) ──
|
|
|
|
|
POSTGRES_DB=elemes
|
|
|
|
|
POSTGRES_USER=elemes
|
|
|
|
|
# WAJIB diganti dengan password kuat (huruf/angka saja agar aman di URL)
|
|
|
|
|
POSTGRES_PASSWORD=elemes_pg_dev_password
|
|
|
|
|
# URL koneksi SQLAlchemy (psycopg 3 driver)
|
|
|
|
|
DATABASE_URL=postgresql+psycopg://elemes:elemes_pg_dev_password@127.0.0.1:5432/elemes
|
|
|
|
|
# Pepper untuk HMAC digest token — WAJIB unik & dibackup; hilang = semua token invalid
|
|
|
|
|
TOKEN_PEPPER=ganti_dengan_pepper_acak_panjang
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
# Storage aktif: satu-satunya backend adalah postgresql (backend CSV sudah dicabut)
|
2026-08-08 11:57:08 +07:00
|
|
|
STORAGE_BACKEND=postgresql
|
feat(teacher): manajemen akun guru canonical + first-run otomatis; cabut backend CSV (PG only)
- feat: ./elemes.sh teacher — upsert satu akun guru canonical (prompt nama default TEACHER_NAME, token tersembunyi via stdin, rotasi token saat guru sudah ada, idempotent); TEACHER_NAME/TEACHER_TOKEN di .env
- feat: first-run otomatis — db_init jalankan alembic upgrade head + bootstrap guru bila TEACHER_TOKEN terisi (run/runbuild/runclearbuild)
- refactor: backend CSV dicabut penuh — hapus mount tokens_siswa.csv, TOKENS_FILE, STORAGE_BACKEND=csv, csv_backend.py, csv_importer.py, generate_tokens.py, script migrate/verify/export CSV, command generatetoken/dbimport/dbverify/dbexport/synclessons; storage fail-loud postgresql-only
- fix: dbrestore gagal diam-diam saat restore ke DB berisi data (dump tanpa --clean) — dbbackup kini --clean --if-exists + dbrestore reset schema public; roundtrip terverifikasi
- test: suite kontrak PG-native + route auth/progress integrasi PG; 183 passed container, 96 passed host, frontend 91 passed
- docs: README, documentation.md, docs/01/02/11, load-test/README disinkronkan ke realita PostgreSQL-only; proposal.md dipertahankan (historis)
- chore: load-test token sintetis di-seed ke PG (content_parser), config.py bersih TOKENS_FILE, .dockerignore/.gitignore dibersihkan
2026-08-09 11:21:08 +07:00
|
|
|
|
|
|
|
|
# ── Akun Guru (bootstrap canonical) ─────────────
|
|
|
|
|
# Nama default guru: dipakai saat first-run otomatis dan sebagai default
|
|
|
|
|
# prompt pada `./elemes.sh teacher`.
|
|
|
|
|
TEACHER_NAME=Guru LMS
|
|
|
|
|
# Token guru untuk first-run non-interaktif (opsional). Jika dibiarkan
|
|
|
|
|
# kosong, `./elemes.sh teacher` tetap meminta token secara tersembunyi.
|
|
|
|
|
# Token disimpan sebagai HMAC digest — jangan bagikan ke siapa pun.
|
|
|
|
|
# Mengubah nilai ini saat guru sudah ada akan MEROTASI token guru lama.
|
|
|
|
|
TEACHER_TOKEN=
|