# Generated by Django 5.2.12 on 2026-04-01 10:08

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('nginxmon', '0003_add_excluded_ips'),
    ]

    operations = [
        migrations.AddField(
            model_name='nginxaccesslog',
            name='note',
            field=models.TextField(blank=True, default=''),
        ),
        migrations.AddField(
            model_name='nginxsettings',
            name='auto_ban_enabled',
            field=models.BooleanField(default=True, help_text='Automatically ban IPs that repeatedly probe auth endpoints.'),
        ),
        migrations.AddField(
            model_name='nginxsettings',
            name='auto_ban_threshold',
            field=models.IntegerField(default=5, help_text='Number of auth-probe requests from one IP within the window before auto-ban.'),
        ),
        migrations.AddField(
            model_name='nginxsettings',
            name='auto_ban_window_hours',
            field=models.IntegerField(default=24, help_text='Rolling window (hours) used to count auth-probe requests.'),
        ),
    ]
