Fixed startup email

This commit is contained in:
Jonas Linter
2025-10-16 10:53:03 +02:00
parent 90e253b950
commit 6ad4df6990
4 changed files with 336 additions and 31 deletions

View File

@@ -14,11 +14,9 @@ server:
companyname: "99tales Gmbh"
res_id_source_context: "99tales"
logger:
level: "INFO" # Set to DEBUG for more verbose output
file: "alpinebits.log" # Log file path, or null for console only
level: "INFO" # Set to DEBUG for more verbose output
file: "alpinebits.log" # Log file path, or null for console only
alpine_bits_auth:
- hotel_id: "39054_001"
@@ -40,48 +38,48 @@ alpine_bits_auth:
username: "erika"
password: !secret ERIKA_PASSWORD
api_tokens:
- tLTI8wXF1OVEvUX7kdZRhSW3Qr5feBCz0mHo-kbnEp0
# Email configuration for monitoring and alerts
email:
# SMTP server configuration
smtp:
host: "smtp.titan.email" # Your SMTP server
port: 465 # Usually 587 for TLS, 465 for SSL
username: info@99tales.net # SMTP username
password: !secret EMAIL_PASSWORD # SMTP password
use_tls: false # Use STARTTLS
use_ssl: true # Use SSL/TLS from start
host: "smtp.titan.email" # Your SMTP server
port: 465 # Usually 587 for TLS, 465 for SSL
username: info@99tales.net # SMTP username
password: !secret EMAIL_PASSWORD # SMTP password
use_tls: false # Use STARTTLS
use_ssl: true # Use SSL/TLS from start
# Email addresses
from_address: "info@99tales.net" # Sender address
from_name: "AlpineBits Monitor" # Sender display name
api_tokens:
- tLTI8wXF1OVEvUX7kdZRhSW3Qr5feBCz0mHo-kbnEp0
from_address: "info@99tales.net" # Sender address
from_name: "AlpineBits Monitor" # Sender display name
# Monitoring and alerting
monitoring:
# Daily report configuration
daily_report:
enabled: false # Set to true to enable daily reports
enabled: false # Set to true to enable daily reports
recipients:
- "jonas@vaius.ai"
#- "dev@99tales.com"
send_time: "08:00" # Time to send daily report (24h format, local time)
include_stats: true # Include reservation/customer stats
include_errors: true # Include error summary
send_time: "08:00" # Time to send daily report (24h format, local time)
include_stats: true # Include reservation/customer stats
include_errors: true # Include error summary
# Error alert configuration (hybrid approach)
error_alerts:
enabled: false # Set to true to enable error alerts
enabled: false # Set to true to enable error alerts
recipients:
- "jonas@vaius.ai"
#- "oncall@99tales.com"
# Alert is sent immediately if threshold is reached
error_threshold: 5 # Send immediate alert after N errors
error_threshold: 5 # Send immediate alert after N errors
# Otherwise, alert is sent after buffer time expires
buffer_minutes: 15 # Wait N minutes before sending buffered errors
buffer_minutes: 15 # Wait N minutes before sending buffered errors
# Cooldown period to prevent alert spam
cooldown_minutes: 15 # Wait N min before sending another alert
cooldown_minutes: 15 # Wait N min before sending another alert
# Error severity levels to monitor
log_levels:
- "ERROR"