-
Notifications
You must be signed in to change notification settings - Fork 0
Updates metadata flow for authenticated Audible #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2355dec
Refactor tests to use MetadataCoordinator and improve error handling
H2OKing89 0c856f7
Add documentation for asynchronous requests, changelog, examples, and…
H2OKing89 88fab9a
Enhance Audible client with async initialization and context manageme…
H2OKing89 d8dec7e
Refactor Audible integration and improve documentation
H2OKing89 6de7da5
Enhance CI workflow with Python version matrix, improve Audible clien…
H2OKing89 840c116
Refactor AudibleClientProvider to prioritize environment variables fo…
H2OKing89 01c8f5b
Update configuration and troubleshooting documentation; enhance loggi…
H2OKing89 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,128 @@ | ||
| # 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 for the Audible backend to return results. | ||
|
|
||
| # ============================================================================= | ||
| # 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, 640 for logs, or 600 where feasible) using a dedicated service user and log group for intentional group-read access | ||
| # [ ] Verify deployed log files are not world-readable (for example: `stat -c '%a %n' logs/*`) | ||
| # [ ] Regular security updates scheduled |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.