- Add helpers/NotificationHelper.php: shared Matrix webhook sender that reads MATRIX_WEBHOOK_URL and MATRIX_NOTIFY_USERS from config - Remove sendDiscordWebhook() from TicketController; call NotificationHelper::sendTicketNotification() instead - Replace 60-line Discord embed block in create_ticket_api.php with a single NotificationHelper call - config/config.php: DISCORD_WEBHOOK_URL → MATRIX_WEBHOOK_URL + new MATRIX_NOTIFY_USERS key (comma-separated Matrix user IDs) - .env.example: updated env var names and comments Payload sent to hookshot includes notify_users array so the JS transform can build proper @mention links for each user. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
918 B
Plaintext
29 lines
918 B
Plaintext
# 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
|