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:
@@ -1,8 +1,7 @@
|
||||
:8080 {
|
||||
basicauth /* {
|
||||
# user: admin | pwd: 2/e+h<L9\V6;
|
||||
# regenerate: htpasswd -nbB -C 10 admin NEWPWD | cut -d: -f2 | base64
|
||||
admin JDJ5JDEwJHlaV2tLUzBQL2ZsSndBL2g4WDZBNk9NdEZtTnVqcThOOHZ2aXNGRVVMWHhJUDB0WHhNanZD
|
||||
basic_auth /* {
|
||||
# Set BASIC_AUTH_HASH on the server: caddy hash-password --plaintext 'YOUR_PWD'
|
||||
admin {env.BASIC_AUTH_HASH}
|
||||
}
|
||||
reverse_proxy localhost:4213
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user