11# ═══════════════════════════════════════════════════════════════════════════════
22# EXPORT TRAKT FOR LETTERBOXD
3- # Configuration Template
3+ # Active Configuration
44# ═══════════════════════════════════════════════════════════════════════════════
55#
6- # 📋 Instructions:
7- # 1. Copy this file to 'config.toml'
8- # 2. Replace placeholder values with your actual credentials
9- # 3. Customize settings according to your preferences
6+ # This file contains your real API credentials - NEVER commit to version control
7+ # For template/example, see: config.example.toml
108#
11- # 🔗 Get API credentials: https://trakt.tv/oauth/applications
12- # 📖 Documentation: https://github.com/JohanDevl/Export_Trakt_4_Letterboxd
9+ # API credentials from : https://trakt.tv/oauth/applications
10+ # Documentation: https://github.com/JohanDevl/Export_Trakt_4_Letterboxd
1311#
1412# ═══════════════════════════════════════════════════════════════════════════════
1513
16- # Export Trakt 4 Letterboxd Configuration File
17- # This is an example configuration file with enhanced security features
18-
1914# ┌─────────────────────────────────────────────────────────────────────────────┐
2015# │ 🔑 TRAKT.TV API SETTINGS │
2116# └─────────────────────────────────────────────────────────────────────────────┘
2217[trakt ]
23- # Trakt.tv API configuration
24- # Note: With OAuth enabled, only client_id and client_secret are required
25- client_id = " your_trakt_client_id" # Required for OAuth flow
26- client_secret = " your_trakt_client_secret" # Required for OAuth flow
27- access_token = " " # Legacy: Optional, will be obtained automatically via OAuth
28- api_base_url = " https://api.trakt.tv" # HTTPS enforced when security.require_https = true
18+ # Your Trakt.tv application credentials
19+ # ✅ CONFIGURED: Real credentials in use
20+ client_id = " c479b2e7dc4fbec157d89cd4cba9cf88fc614de7ec17813fc9f5bac92e1c8786"
21+ client_secret = " dc25b9c7cbe7346b9ff65d545ddbc8d1fe645268d42b6a105b3da249dc73fb2a"
22+ access_token = " "
23+
24+ # API endpoint (don't change unless you know what you're doing)
25+ api_base_url = " https://api.trakt.tv"
2926
3027# 📊 Data detail level for exports
3128# Options: "min" | "full" | "metadata" | "letterboxd"
@@ -36,8 +33,10 @@ extended_info = "full"
3633# │ 📽️ LETTERBOXD EXPORT SETTINGS │
3734# └─────────────────────────────────────────────────────────────────────────────┘
3835[letterboxd ]
36+ # Directory where export files will be saved
37+ export_dir = " exports"
38+
3939# Letterboxd export configuration
40- export_dir = " ./exports"
4140watched_filename = " watched.csv"
4241collection_filename = " watchlist.csv"
4342shows_filename = " shows.csv"
@@ -54,7 +53,7 @@ letterboxd_import_filename = "letterboxd_import.csv"
5453# │ ⚙️ GENERAL EXPORT SETTINGS │
5554# └─────────────────────────────────────────────────────────────────────────────┘
5655[export ]
57- # Export format settings
56+ # Export file format
5857format = " csv"
5958
6059# 📅 Date format in exports (Go time layout)
@@ -64,14 +63,15 @@ date_format = "2006-01-02"
6463# 🌍 Timezone for export timestamps
6564# Examples: "Europe/Paris", "America/New_York", "Asia/Tokyo"
6665# 💡 Leave empty "" to use UTC
67- timezone = " UTC"
66+ # CONFIGURED: Using Paris timezone
67+ timezone = " Europe/Paris"
6868
6969# ┌─────────────────────────────────────────────────────────────────────────────┐
7070# │ 📝 LOGGING CONFIGURATION │
7171# └─────────────────────────────────────────────────────────────────────────────┘
7272[logging ]
7373# Application logging configuration
74- level = " info " # debug, info, warn, error, fatal
74+ level = " debug " # debug, info, warn, error, fatal - DEVELOPMENT MODE
7575format = " visual" # visual, json, text
7676output = " stdout" # stdout, stderr, file
7777rotation_enabled = false # Enable log rotation
@@ -81,30 +81,30 @@ max_backups = 3 # Maximum number of backup files
8181correlation_id = true # Enable correlation IDs for request tracing
8282
8383# 📄 Log file location (when output = "file")
84- file = " ./ logs/app .log"
84+ file = " logs/export .log"
8585
8686# ┌─────────────────────────────────────────────────────────────────────────────┐
8787# │ 📊 MONITORING AND OBSERVABILITY │
8888# └─────────────────────────────────────────────────────────────────────────────┘
8989[monitoring ]
90- # Enable monitoring and observability features
91- enabled = true
92- metrics_enabled = true # Enable Prometheus metrics
93- tracing_enabled = true # Enable OpenTelemetry tracing
94- health_checks_enabled = true # Enable health check endpoints
90+ # Enable monitoring and observability features - DISABLED FOR DEVELOPMENT
91+ enabled = false
92+ metrics_enabled = false # Enable Prometheus metrics
93+ tracing_enabled = false # Enable OpenTelemetry tracing
94+ health_checks_enabled = false # Enable health check endpoints
9595metrics_port = 9090 # Port for metrics and health endpoints
9696metrics_path = " /metrics" # Path for Prometheus metrics
9797
98- # Tracing configuration (OpenTelemetry)
98+ # Tracing configuration (OpenTelemetry) - DISABLED FOR DEVELOPMENT
9999[tracing ]
100- enabled = true
100+ enabled = false
101101service_name = " export-trakt-letterboxd"
102102service_version = " 1.0.0"
103- environment = " production " # production, staging, development
103+ environment = " development " # production, staging, development
104104jaeger_endpoint = " http://localhost:14268/api/traces" # Optional Jaeger endpoint
105105sampling_rate = 0.1 # Sampling rate (0.0 to 1.0, 0.1 = 10% of traces)
106106
107- # Alerting configuration
107+ # Alerting configuration - DISABLED FOR DEVELOPMENT
108108[alerts ]
109109webhook_url = " " # Optional webhook URL for alerts
110110email_enabled = false # Enable email alerts
@@ -115,33 +115,35 @@ rate_limit_minutes = 5 # Rate limit for alerts (prevent spam)
115115# │ 🌐 INTERNATIONALIZATION SETTINGS │
116116# └─────────────────────────────────────────────────────────────────────────────┘
117117[i18n ]
118- # Internationalization settings
118+ # ️ Default language for the application
119119default_language = " en"
120120
121121# 🌏 Current language setting
122122# Available: "en", "fr", "de", "es" (check locales/ directory)
123123language = " en"
124124
125125# 📁 Directory containing translation files
126- locales_dir = " ./ locales"
126+ locales_dir = " locales"
127127
128- # 🔒 Enhanced Security Configuration
128+ # ┌─────────────────────────────────────────────────────────────────────────────┐
129+ # │ 🔒 ENHANCED SECURITY CONFIGURATION │
130+ # └─────────────────────────────────────────────────────────────────────────────┘
129131[security ]
130- # Enable encryption for sensitive data storage
132+ # Enable encryption for sensitive data storage - SIMPLIFIED FOR DEVELOPMENT
131133encryption_enabled = true
132134
133135# Keyring backend for credential storage
134136# Options: "system" (OS keychain), "env" (environment variables), "file" (encrypted file)
135- keyring_backend = " system "
137+ keyring_backend = " env "
136138
137- # Enable comprehensive audit logging
138- audit_logging = true
139+ # Enable comprehensive audit logging - DISABLED FOR DEVELOPMENT
140+ audit_logging = false
139141
140- # Enable rate limiting for API calls
141- rate_limit_enabled = true
142+ # Enable rate limiting for API calls - DISABLED FOR DEVELOPMENT
143+ rate_limit_enabled = false
142144
143- # Require HTTPS for all external communications
144- require_https = true
145+ # Require HTTPS for all external communications - DISABLED FOR DEVELOPMENT
146+ require_https = false
145147
146148# Audit logging configuration
147149[security .audit ]
@@ -157,7 +159,58 @@ include_sensitive = false
157159# Audit log output format: json, text
158160output_format = " json"
159161
160- # 📝 Security Configuration Guidelines
162+ # ┌─────────────────────────────────────────────────────────────────────────────┐
163+ # │ 🌐 WEB SERVER CONFIGURATION │
164+ # └─────────────────────────────────────────────────────────────────────────────┘
165+ [webserver ]
166+ # Web server host and port configuration - DEVELOPMENT SETTINGS
167+ host = " localhost" # Server host (use 0.0.0.0 for all interfaces)
168+ port = 8080 # Server port - STANDARD PORT
169+
170+ # TLS/HTTPS configuration (optional) - DISABLED FOR DEVELOPMENT
171+ tls_cert = " " # Path to TLS certificate file (leave empty for HTTP)
172+ tls_key = " " # Path to TLS private key file (leave empty for HTTP)
173+
174+ # JWT secret for authentication - DEVELOPMENT SECRET
175+ jwt_secret = " development-jwt-secret-key-for-testing-only"
176+
177+ # Debug mode (enables additional logging and development features) - ENABLED FOR DEVELOPMENT
178+ debug = true # Set to true for development
179+
180+ # ┌─────────────────────────────────────────────────────────────────────────────┐
181+ # │ 🔐 OAUTH AUTHENTICATION SETTINGS │
182+ # └─────────────────────────────────────────────────────────────────────────────┘
183+ [auth ]
184+ # OAuth 2.0 authentication configuration
185+ use_oauth = true # Enable OAuth authentication (recommended)
186+ auto_refresh = true # Automatically refresh expired tokens
187+
188+ # OAuth callback configuration
189+ # For development: using localhost
190+ redirect_uri = " http://localhost:8089/callback" # Must match your Trakt.tv app settings
191+ callback_port = 8089 # Port for local callback server
192+
193+ # Alternative configurations:
194+ # For production Docker machine: "http://192.168.1.24:8089/callback"
195+ # For different port: change both redirect_uri and callback_port to match
196+
197+ # ═══════════════════════════════════════════════════════════════════════════════
198+ # 📚 NOTES
199+ # ═══════════════════════════════════════════════════════════════════════════════
200+ #
201+ # 🔐 Security: This file contains real credentials - keep it private!
202+ # 📖 For more options, check the project documentation
203+ # 🐛 Issues? Report them at: https://github.com/JohanDevl/Export_Trakt_4_Letterboxd/issues
204+ #
205+ # 📝 Development Configuration
206+ # This configuration is optimized for development and testing:
207+ # - Debug mode enabled
208+ # - Monitoring/tracing disabled
209+ # - Security features simplified
210+ # - Port 808 for development
211+ # - Real Trakt.tv credentials for testing
212+ #
213+ # 🔐 Security Configuration Guidelines
161214#
162215# 1. Credential Management:
163216# - Use "system" keyring backend for maximum security on desktop systems
@@ -199,37 +252,5 @@ output_format = "json"
199252# TRAKT_CLIENT_ID=your_client_id_here
200253# TRAKT_CLIENT_SECRET=your_client_secret_here
201254# ENCRYPTION_KEY=base64_encoded_32_byte_key_here
202-
203- # ┌─────────────────────────────────────────────────────────────────────────────┐
204- # │ 🔐 OAUTH AUTHENTICATION SETTINGS │
205- # └─────────────────────────────────────────────────────────────────────────────┘
206- [auth ]
207- # OAuth 2.0 authentication configuration
208- use_oauth = true # Enable OAuth authentication (recommended)
209- auto_refresh = true # Automatically refresh expired tokens
210-
211- # OAuth callback configuration
212- redirect_uri = " http://localhost:8080/callback" # Must match your Trakt.tv app settings
213- callback_port = 8080 # Port for local callback server
214-
215- # 🚀 Quick Start with OAuth:
216- # 1. Configure your Trakt.tv app with the redirect_uri above
217- # 2. Run: docker exec -it <container> /app/export-trakt auth
218- # 3. Follow the interactive authentication flow
219- # 4. Tokens will be automatically managed and refreshed
220-
221- # 💡 OAuth Commands:
222- # - auth : Interactive OAuth authentication
223- # - token-status : Check current token status
224- # - token-refresh : Manually refresh access token
225- # - token-clear : Clear all stored tokens
226-
227- # ═══════════════════════════════════════════════════════════════════════════════
228- # 📚 NOTES
229- # ═══════════════════════════════════════════════════════════════════════════════
230- #
231- # 🔐 Security: Never commit config.toml with real credentials to version control
232- # 📖 For more options, check the project documentation
233- # 🐛 Issues? Report them at: https://github.com/JohanDevl/Export_Trakt_4_Letterboxd/issues
234255#
235256# ═══════════════════════════════════════════════════════════════════════════════
0 commit comments