diff --git a/app/db/migrations/versions/20faa9f18c0a_init.py b/app/db/migrations/versions/20faa9f18c0a_init.py index d4e71e3..a004ba3 100644 --- a/app/db/migrations/versions/20faa9f18c0a_init.py +++ b/app/db/migrations/versions/20faa9f18c0a_init.py @@ -190,8 +190,8 @@ def upgrade() -> None: sa.Column("address", sa.String(length=256), nullable=False), sa.Column("port", sa.Integer(), nullable=True), sa.Column("path", sa.String(length=256), nullable=True), - sa.Column("sni", sa.String(length=256), nullable=True), - sa.Column("host", sa.String(length=256), nullable=True), + sa.Column("sni", sa.String(length=1024), nullable=True), + sa.Column("host", sa.String(length=1024), nullable=True), sa.Column( "security", sa.Enum("inbound_default", "none", "tls", name="inboundhostsecurity"), diff --git a/app/db/models.py b/app/db/models.py index 6c44a12..1e6a143 100644 --- a/app/db/models.py +++ b/app/db/models.py @@ -173,8 +173,8 @@ class InboundHost(Base): address = Column(String(256), nullable=False) port = Column(Integer) path = Column(String(256)) - sni = Column(String(256)) - host = Column(String(256)) + sni = Column(String(1024)) + host = Column(String(1024)) security = Column( Enum(InboundHostSecurity), nullable=False,