simplify container: skip db prep, password via env var, fixed server IP

- start.sh: remove prepara_db.py step; load S3 creds via DuckDB init file
- Caddyfile: switch to basic_auth with {env.BASIC_AUTH_HASH} — no rebuild to rotate password
- Dockerfile: drop Python/pip layers (no longer needed at runtime)
- haloy.yml: set server to 89.167.95.136, add BASIC_AUTH_HASH to env
- remove requirements.txt (only needed for local prepara_db.py, not the container)
This commit is contained in:
2026-03-25 13:27:51 +01:00
parent 9eb2dee013
commit 0d77f83045
5 changed files with 19 additions and 23 deletions

View File

@@ -1,10 +1,10 @@
name: basedosdados
server: YOUR_SERVER_IP_OR_HOSTNAME
server: 89.167.95.136
domains:
- domain: db.xn--2dk.xyz
port: 8080
env:
- HETZNER_S3_BUCKET
- HETZNER_S3_ENDPOINT
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- BASIC_AUTH_HASH