security: bind api port to localhost by default

Prevents accidental exposure to the public internet. Users who need
external access can change to 0.0.0.0:8900:8900 explicitly.

Made-with: Cursor
This commit is contained in:
Xubin Ren 2026-04-06 08:16:13 +00:00 committed by Xubin Ren
parent 634261f07a
commit d108879b48

View File

@ -36,7 +36,7 @@ services:
["serve", "--host", "0.0.0.0", "-w", "/home/nanobot/.nanobot/api-workspace"]
restart: unless-stopped
ports:
- 8900:8900
- 127.0.0.1:8900:8900
deploy:
resources:
limits: