-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
127 lines (95 loc) · 4.62 KB
/
Copy path.env.example
File metadata and controls
127 lines (95 loc) · 4.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Audiobook Approval System - Environment Variables Template
# Copy this file to .env and fill in your actual values
# NEVER commit .env with real values to version control
# =============================================================================
# SECURITY SETTINGS
# =============================================================================
# Force HTTPS redirects (set to 'true' in production)
FORCE_HTTPS=false
# API Key for admin endpoints (generate a strong random key)
# API_KEY=your-secure-api-key-here
# =============================================================================
# DATABASE
# =============================================================================
# Path to SQLite database file
# DB_PATH=/var/lib/audiobook/db.sqlite
# =============================================================================
# AUTOBRR INTEGRATION
# =============================================================================
# Token for webhook authentication (set in autobrr)
AUTOBRR_TOKEN=your-autobrr-webhook-token
# =============================================================================
# MAM (MYANONAMOUSE) SETTINGS
# =============================================================================
# MAM session cookie value for API access
# Get this from your browser after logging into MAM (cookie name: mam_id)
# SECURITY: Never share this value - it grants full access to your MAM account
MAM_ID=your-mam-session-cookie-value
# Optional: known safe torrent ID for manual download integration testing
# MAM_TEST_TID=1234567
# =============================================================================
# AUDIBLE SETTINGS (OPTIONAL AUTHENTICATED SEARCH)
# =============================================================================
# Optional override for the encrypted Audible auth file consumed by mkb79/Audible
# AUDIBLE_AUTH_FILE=secrets/audible-auth.json
# Password used to decrypt the Audible auth file (not your Audible/Amazon account password)
# AUDIBLE_AUTH_FILE_PASSWORD=your-audible-auth-file-password
# NOTE: The repo install path adds mkb79/Audible from GitHub. The auth file and
# decrypt password are required only when the authenticated Audible backend is enabled.
# =============================================================================
# QBITTORRENT SETTINGS
# =============================================================================
# qBittorrent connection details
QB_HOST=http://localhost:8080
QB_USERNAME=admin
QB_PASSWORD=your-qbittorrent-password
# =============================================================================
# NOTIFICATION SERVICES
# =============================================================================
# Discord Webhook
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/your/webhook/url
# Gotify Notifications
GOTIFY_SERVER_URL=https://gotify.example.com
GOTIFY_APP_TOKEN=your-gotify-app-token
# Ntfy Notifications
NTFY_TOPIC=audiobook_requests
NTFY_TOKEN=optional-ntfy-bearer-token
# Pushover Notifications
PUSHOVER_USER_KEY=your-pushover-user-key
PUSHOVER_API_TOKEN=your-pushover-api-token
# =============================================================================
# APPLICATION SETTINGS
# =============================================================================
# Environment (development, staging, production)
ENVIRONMENT=development
# Base URL for the application (used for redirects and notifications)
BASE_URL=https://audiobook-requests.example.com
# Server host and port
HOST=0.0.0.0
PORT=8000
# =============================================================================
# LOGGING
# =============================================================================
# Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
LOG_LEVEL=INFO
# Log file path
LOG_FILE=logs/audiobook_requests.log
# =============================================================================
# SECURITY NOTES
# =============================================================================
# 1. Generate strong, unique passwords for all services
# 2. Use HTTPS in production (set FORCE_HTTPS=true)
# 3. Keep this file secure and never commit it to version control
# 4. Rotate secrets regularly
# 5. Use environment-specific configurations
# 6. Monitor logs for security events
# =============================================================================
# PRODUCTION CHECKLIST
# =============================================================================
# [ ] FORCE_HTTPS=true
# [ ] Strong API_KEY set
# [ ] All webhook tokens configured
# [ ] Database path secured
# [ ] Log rotation configured
# [ ] File permissions secured (600 for .env, 644 for logs)
# [ ] Regular security updates scheduled