mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-08-04 07:42:47 +00:00
Add new settings to database.
This commit is contained in:
parent
7812a410b3
commit
2add2c1dd2
1 changed files with 30 additions and 0 deletions
30
core/migrations/0013_proxysettings.py
Normal file
30
core/migrations/0013_proxysettings.py
Normal file
|
|
@ -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',
|
||||
},
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue