mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
фикс авторизации2
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
"""merge heads
|
||||
|
||||
Revision ID: merge_heads
|
||||
Revises: create_tokens_table
|
||||
Create Date: 2024-01-03 10:50:00.000000
|
||||
Revises: initial_migration, create_tokens_table
|
||||
Create Date: 2024-01-03 10:52:00.000000
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
@@ -10,12 +10,12 @@ import sqlalchemy as sa
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'merge_heads'
|
||||
down_revision = 'create_tokens_table'
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
depends_on = ('initial_migration', 'create_tokens_table')
|
||||
|
||||
def upgrade() -> None:
|
||||
def upgrade():
|
||||
pass
|
||||
|
||||
def downgrade() -> None:
|
||||
def downgrade():
|
||||
pass
|
||||
@@ -3,7 +3,7 @@ import os
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import sessionmaker, declarative_base
|
||||
|
||||
SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://postgres:postgres123@postgres:5432/support_db")
|
||||
SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://postgres:postgres123@db:5432/support_db")
|
||||
|
||||
engine = create_engine(SQLALCHEMY_DATABASE_URL)
|
||||
|
||||
|
||||
@@ -13,6 +13,9 @@ server {
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
|
||||
# Отключаем проверку SSL
|
||||
proxy_ssl_verify off;
|
||||
}
|
||||
|
||||
# API proxy
|
||||
@@ -23,6 +26,9 @@ server {
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
|
||||
# Отключаем проверку SSL
|
||||
proxy_ssl_verify off;
|
||||
}
|
||||
|
||||
# Handle SPA routing
|
||||
|
||||
Reference in New Issue
Block a user