Files
news-platform/wordpress/.env.example
738f847d36 feat: theme system + institutional theme + andebol.net domain config
Add domain-aware theme system (BIT-494, BIT-495, BIT-496, BIT-497):

- Theme architecture: move shared components into src/themes/sports/,
  create src/themes/institutional/ with handball-oriented design
- Domain config: andebol.net.json (institutional theme, pt-PT locale,
  handball categories, WP endpoint port 8081)
- theme.ts library: resolves theme components per domain config
- Updated layouts/pages to use theme-aware component loading
- Updated docs: domains.md, frontend.md with theme system docs
- Smoke test script for andebol.net
- WordPress .env.example with andebol env vars

Note: this work was completed in BIT-494/495/496/497 but was
never committed — committing now to unblock andebol.net deploy.

Co-Authored-By: Paperclip <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-27 08:38:41 +00:00

31 lines
1.6 KiB
Bash

# WordPress Database credentials
# Copy to .env and fill in secure values — never commit .env to git
#
# If db_data already exists, MYSQL_* must match the password used at first init.
# Changing MYSQL_PASSWORD here without aligning MariaDB (or wiping db_data after backup) causes
# «Error establishing a database connection» (WordPress still points at db:3306 but auth fails).
MYSQL_ROOT_PASSWORD=change_this_root_password
MYSQL_PASSWORD=change_this_wordpress_password
# WordPress admin (used by setup scripts only)
WP_ADMIN_USER=admin
WP_ADMIN_EMAIL=[email protected]
# WP_ADMIN_PASSWORD — set in vault; do not store here
# Public URL WordPress uses for redirects (wp-login, wp-admin). On the LXC behind NPM use HTTPS + host:
# WORDPRESS_PUBLIC_URL=https://newsproject.bitreport.pt
# Local Docker-only dev (browser → localhost:8080): omit or use http://localhost:8080
WORDPRESS_PUBLIC_URL=http://localhost:8080
# Emergency triage on the LXC only: WORDPRESS_DEBUG=1 → WP_DEBUG + display_errors + debug.log
# (remove or set 0 after fixing — do not leave on in production). See docker-compose.yml WORDPRESS_CONFIG_EXTRA.
# WORDPRESS_DEBUG=0
# ── andebol.net WordPress (port 8081) ─────────────────────────────────────────
ANDEBOL_MYSQL_ROOT_PASSWORD=change_this_andebol_root_password
ANDEBOL_MYSQL_PASSWORD=change_this_andebol_wordpress_password
# Public URL for andebol.net WP instance.
# Local smoke test: http://localhost:8081
# Production (LXC behind NPM): https://andebol.net
ANDEBOL_WORDPRESS_PUBLIC_URL=http://localhost:8081