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:
@@ -4,6 +4,8 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
env_file: .env
|
||||
ports:
|
||||
- "${HTTP_PORT:-8080}:8080"
|
||||
volumes:
|
||||
- .:/app
|
||||
restart: "no"
|
||||
|
||||
Reference in New Issue
Block a user