18bf1fde0e
- Create tinker-tickets service account in lldap (lldap_strict_readonly) - Add /api/user_avatar.php: binds to lldap, fetches avatar attribute, caches JPEG to uploads/avatars/, returns 404 sentinel for missing photos - Install php8.2-ldap on LXC 132 (beta) and LXC coding server - Update layout_header.php: show lt-avatar with photo overlay + initials fallback - Update TicketView.php: comment avatars use photo overlay pattern - Add .lt-avatar-img / .lt-avatar-initials CSS for photo-over-initials layout - Add LDAP_* config keys to config.php and .env.example Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Tinker Tickets Environment Configuration
|
|
# Copy this file to .env and fill in your values
|
|
|
|
# Database Configuration
|
|
DB_HOST=10.10.10.50
|
|
DB_USER=tinkertickets
|
|
DB_PASS=your_password_here
|
|
DB_NAME=ticketing_system
|
|
|
|
# Matrix Webhook (optional - for notifications via matrix-hookshot)
|
|
# Set to your hookshot generic webhook URL, e.g.:
|
|
# https://matrix.lotusguild.org/webhook/<uuid>
|
|
MATRIX_WEBHOOK_URL=
|
|
|
|
# Matrix users to @mention on every new ticket (comma-separated Matrix user IDs)
|
|
# e.g. @jared:matrix.lotusguild.org,@alice:matrix.lotusguild.org
|
|
MATRIX_NOTIFY_USERS=
|
|
|
|
# Application Domain (required for Matrix webhook ticket links)
|
|
# Set this to your public domain (e.g., t.lotusguild.org)
|
|
APP_DOMAIN=
|
|
|
|
# Allowed Hosts for HTTP_HOST validation (comma-separated)
|
|
# Include all domains that can access this application
|
|
ALLOWED_HOSTS=localhost,127.0.0.1
|
|
|
|
# Timezone (default: America/New_York)
|
|
TIMEZONE=America/New_York
|
|
|
|
# LDAP / lldap (for user avatar lookups)
|
|
LDAP_ENABLED=true
|
|
LDAP_HOST=10.10.10.39
|
|
LDAP_PORT=3890
|
|
LDAP_BIND_DN=uid=tinker-tickets,ou=people,dc=example,dc=com
|
|
LDAP_BIND_PW=
|
|
LDAP_BASE_DN=dc=example,dc=com
|
|
LDAP_USER_BASE=ou=people,dc=example,dc=com
|
|
# How long to cache avatar images locally (seconds, default 3600)
|
|
AVATAR_CACHE_TTL=3600
|