Compare commits

...

2 Commits

Author SHA1 Message Date
Glenn Thompson 17882bb82c Normalize channel-name polling to 15s (was 10s) 2026-03-14 06:57:25 +00:00
Brian O'Reilly 4f7b63e1b9 docker port maps leak to external interface...
Unless they are explicitly bound to loopback, which I thought was the
default, but it is not. likely related to the interface between
bridges and ip tables in the Linux kernel, but anyhow, get literal
about the portmap interface address to prevent exposing the database
to the entire internet. With thanks to the friendly heads up email
from the German Federal Republic via Hetzner.
2026-03-14 06:52:09 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ services:
- POSTGRES_USER=${ASTEROID_DB_USER:-asteroid}
- POSTGRES_PASSWORD=${ASTEROID_DB_PASSWORD:-asteroid_db_2025}
ports:
- "5432:5432"
- "127.0.0.1:5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./init-db.sql:/docker-entrypoint-initdb.d/init-db.sql:ro

View File

@ -956,7 +956,7 @@
(setf (ps:@ curated-option text-content) (+ "🎧 " current-channel-name)))))))))))
(catch (lambda (error)
(ps:chain console (log "Could not fetch channel name:" error))))))
10000)) ;; Poll every 10 seconds
15000)) ;; Poll every 15 seconds
;; Start now playing updates
(set-timeout update-mini-now-playing 1000)