Enhance API access control and update Docker configuration

- Added port mapping to docker-compose for local development.
- Modified the API to allow access from localhost without Telegram initData for local development.
- Updated the web application to check for localhost before denying access based on initData.
This commit is contained in:
2026-02-17 14:15:06 +03:00
parent 57c24a79af
commit 7cdf1edc34
3 changed files with 31 additions and 4 deletions

View File

@@ -4,6 +4,8 @@ services:
context: .
dockerfile: Dockerfile
env_file: .env
ports:
- "${HTTP_PORT:-8080}:8080"
volumes:
- .:/app
restart: "no"