Some prebuild fix

This commit is contained in:
IgorVolochay
2026-09-08 09:43:49 +03:00
parent 9fb4fc15b9
commit 8d8361ab8f
3 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -61,14 +61,14 @@ app: FastAPI = FastAPI(
) )
config = SecurityConfig( config = SecurityConfig(
enable_rate_limiting=True, enable_rate_limiting=True,
rate_limit=10, # TODO: check rate limits in real usage rate_limit=10,
rate_limit_window=3, # TODO: check rate limits in real usage rate_limit_window=3,
enable_redis=False, enable_redis=False,
enable_ip_banning=True, enable_ip_banning=True,
enable_penetration_detection=True, enable_penetration_detection=True,
auto_ban_threshold=3, auto_ban_threshold=3,
auto_ban_duration=3600, auto_ban_duration=600,
detection_compiler_timeout=2.0, detection_compiler_timeout=2.0,
detection_max_content_length=10000, detection_max_content_length=10000,
+2 -1
View File
@@ -67,6 +67,7 @@ services:
RABBIT_USER: ${RABBIT_USER} RABBIT_USER: ${RABBIT_USER}
RABBIT_PASS: ${RABBIT_PASS} RABBIT_PASS: ${RABBIT_PASS}
MODERATION_SECRET: ${MODERATION_SECRET} MODERATION_SECRET: ${MODERATION_SECRET}
TG_BOT_TOKEN: ${TG_BOT_TOKEN}
DEV_MODE: ${DEV_MODE:-false} DEV_MODE: ${DEV_MODE:-false}
LOG_LEVEL: ${LOG_LEVEL:-INFO} LOG_LEVEL: ${LOG_LEVEL:-INFO}
logging: logging:
@@ -92,10 +93,10 @@ services:
backend: backend:
condition: service_started condition: service_started
environment: environment:
TG_BOT_TOKEN: ${TG_BOT_TOKEN}
TG_ADMIN_CHAT_ID: ${TG_ADMIN_CHAT_ID} TG_ADMIN_CHAT_ID: ${TG_ADMIN_CHAT_ID}
API_BASE_URL: http://backend:5000 API_BASE_URL: http://backend:5000
MODERATION_SECRET: ${MODERATION_SECRET} MODERATION_SECRET: ${MODERATION_SECRET}
TG_BOT_TOKEN: ${TG_BOT_TOKEN}
RABBIT_HOST: rabbitmq RABBIT_HOST: rabbitmq
RABBIT_PORT: "5672" RABBIT_PORT: "5672"
RABBIT_USER: ${RABBIT_USER} RABBIT_USER: ${RABBIT_USER}
+1 -1
View File
@@ -6,7 +6,7 @@
import { getTelegramInitData } from './auth'; import { getTelegramInitData } from './auth';
const BASE_URL = process.env.REACT_APP_API_URL || ''; const BASE_URL = process.env.REACT_APP_API_URL || '/api';
async function request(method, path, body = null) { async function request(method, path, body = null) {
const headers = { const headers = {