From 2add2c1dd21c8faf0ea30c36e0f814a65777a3be Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Tue, 10 Jun 2025 21:23:04 -0500 Subject: [PATCH] Add new settings to database. --- core/migrations/0013_proxysettings.py | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 core/migrations/0013_proxysettings.py diff --git a/core/migrations/0013_proxysettings.py b/core/migrations/0013_proxysettings.py new file mode 100644 index 00000000..1a69c4ef --- /dev/null +++ b/core/migrations/0013_proxysettings.py @@ -0,0 +1,30 @@ +# Generated by Django 5.1.6 on 2025-06-11 02:22 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0012_default_active_m3u_accounts'), + ] + + operations = [ + migrations.CreateModel( + name='ProxySettings', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('buffering_timeout', models.IntegerField(default=15, help_text='Seconds to wait for buffering before switching streams')), + ('buffering_speed', models.FloatField(default=1.0, help_text='Speed threshold to consider stream buffering (1.0 = normal speed)')), + ('redis_chunk_ttl', models.IntegerField(default=60, help_text='Time in seconds before Redis chunks expire')), + ('channel_shutdown_delay', models.IntegerField(default=0, help_text='Seconds to wait after last client before shutting down channel')), + ('channel_init_grace_period', models.IntegerField(default=5, help_text='Seconds to wait for first client after channel initialization')), + ('created_at', models.DateTimeField(auto_now_add=True)), + ('updated_at', models.DateTimeField(auto_now=True)), + ], + options={ + 'verbose_name': 'Proxy Settings', + 'verbose_name_plural': 'Proxy Settings', + }, + ), + ]