34 Commits

Author SHA1 Message Date
Marcel Hellwig
96b84d45db Adding some more new lints (#393)
Enable `UP` and `TRY` lint
2026-02-01 18:04:15 +01:00
Maximilian Dorninger
a39e0d204a Ruff enable type annotations rule (#362)
This PR enables the ruff rule for return type annotations (ANN), and
adds the ty package for type checking.
2026-01-06 17:07:19 +01:00
Marcel Hellwig
ff013ac76e ruff: enable I lint 2026-01-05 19:30:42 +01:00
maxid
40130c6a37 refactor: rename AllEncompassingConfig to MediaManagerConfig 2025-12-29 23:38:17 +01:00
maxid
1f60db20f3 fix bug where extra slash is appended to the frontend_url, causing oauth to not work 2025-12-07 00:29:17 +01:00
maxDorninger
bb5c61ac79 remove /web prefix from the frontend_url variable 2025-11-29 15:54:01 +01:00
maxDorninger
a012a0cc67 add logging to display which config file is being read 2025-09-04 21:36:32 +02:00
maxDorninger
1f544e55e8 add support for multiple oauth providers 2025-09-04 20:05:45 +02:00
Alma
f9747816db add a prefix for environment variables 2025-08-10 15:42:56 +02:00
Maximilian Dorninger
c7a951eacf Update media_manager/config.py
make /data/images default directory for images
2025-07-18 13:48:48 +02:00
wjbeckett
0158ac1040 fix: Add default values to config classes to resolve test validation errors
- Add default instances to all nested config classes (TorrentConfig, NotificationConfig, IndexerConfig, MetadataProviderConfig, AuthConfig)
- Add default values to AllEncompassingConfig fields to prevent validation errors during testing
- Update GitHub workflow to copy config.example.toml before running tests
- Ensures tests can run without requiring complete configuration files while maintaining production functionality

Fixes test collection errors where pydantic validation failed due to missing required config sections.
2025-07-18 16:56:19 +10:00
wjbeckett
df7d00ad99 feat: improve container setup and fix deployment issues
- Move images directory from /data/images to /app/images to separate app data from user media
- Implement config folder approach instead of direct file mounting
- Add automatic config initialization with example config on first boot
- Remove hardcoded media directory environment variables from Dockerfile
- Update startup script to handle config folder setup and validation
- Only create application-managed directories, not user media directories
- Update docker-compose.yaml to use config folder volume mapping

Fixes container startup failures when config.toml doesn't exist and improves
separation between application data and user media directories.
2025-07-18 12:54:08 +10:00
maxDorninger
c2b7440bdd adjust config options of backend 2025-07-17 16:38:25 +02:00
maxDorninger
81c8381a90 adjust backend to serve static frontend files 2025-07-17 16:04:57 +02:00
maxDorninger
4ca910ec98 add library to config and to models and schemas 2025-07-16 01:19:07 +02:00
maxDorninger
dc981b7d21 hotfix: make delimiter 2 underscores instead of one for env variables 2025-07-11 18:58:58 +02:00
maxDorninger
661e31eb50 update tests 2025-07-11 13:35:38 +02:00
maxDorninger
4cae93abeb refine toml.config and add back default value for host 2025-07-11 11:19:59 +02:00
maxDorninger
8f7c1035c0 remove instantiation calls from settings models 2025-07-11 00:56:04 +02:00
maxDorninger
9db9c85fc6 make all var names lower case and fix circular imports 2025-07-11 00:47:29 +02:00
maxDorninger
9173c3ad83 format files 2025-07-10 23:54:24 +02:00
maxDorninger
d986f91e5e modify notification module config 2025-07-10 23:48:29 +02:00
maxDorninger
8a89a24f25 remove unused usenet_directory var and fix types of the configs 2025-07-10 22:33:44 +02:00
maxDorninger
7ce6de7f85 replace all the other config usages with allencompassing config 2025-07-10 22:25:05 +02:00
maxDorninger
1b784c35c1 add allencompassing config, replace basic config usage with allencompassing config usage 2025-07-10 21:47:37 +02:00
Maximilian Dorninger
8e5e069263 Merge branch 'master' into add-usenet-support 2025-07-10 01:44:12 +02:00
maxDorninger
e17e6d8271 add usenet bool to various schemas/models 2025-07-06 15:17:16 +02:00
Joe Thomas
361288e6bd had a crack at fixing the initial migration 2025-07-04 12:31:07 +02:00
maxDorninger
83521a36ff add feature: password resets via email 2025-06-29 16:26:01 +02:00
maxDorninger
4144ccb98a add checks at startup to determine if hardlinks work 2025-06-22 17:02:14 +02:00
maxDorninger
e9a7845eb8 update cors urls and corresponding documentation and fix documentation 2025-06-08 23:34:32 +02:00
maxDorninger
cc5e9837ec add default values to config and fix import in tv/service 2025-06-07 15:49:41 +02:00
maxDorninger
6150080ac7 refactor: update API URL handling for client and server environments 2025-05-30 12:14:24 +02:00
maxDorninger
206df8b150 refactor: change folder structure 2025-05-29 15:36:35 +02:00