mirror of
https://github.com/xpltdco/media-rip.git
synced 2026-04-03 02:53:58 -06:00
- PurgeConfig: max_age_hours→max_age_minutes (default 1440) - PurgeConfig: privacy_retention_hours→privacy_retention_minutes (default 1440) - PurgeConfig: enabled default False→True - PurgeConfig: cron default every minute (was daily 3am) - Purge scheduler runs every minute for minute-granularity testing - All API fields renamed: purge_max_age_minutes, privacy_retention_minutes - Frontend admin panel inputs show minutes with updated labels - Updated test assertions for new defaults
31 lines
680 B
Python
31 lines
680 B
Python
#!/usr/bin/env python
|
|
"""media.rip() entrypoint — reads config and launches uvicorn with the correct port."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
|
|
def main():
|
|
# Port from env var (MEDIARIP__SERVER__PORT) or default 8000
|
|
port = os.environ.get("MEDIARIP__SERVER__PORT", "8000")
|
|
host = os.environ.get("MEDIARIP__SERVER__HOST", "0.0.0.0")
|
|
|
|
sys.exit(
|
|
os.execvp(
|
|
"python",
|
|
[
|
|
"python",
|
|
"-m",
|
|
"uvicorn",
|
|
"app.main:app",
|
|
"--host",
|
|
host,
|
|
"--port",
|
|
port,
|
|
],
|
|
)
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|