Files
blog/content/posts/commits/2026-04-05-commit-454674c.md
Betty dcf5143806
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 10s
post: commit 454674c in bojemoi
2026-04-05 00:34:19 +02:00

1.3 KiB

title, date, draft, tags, categories, summary, author
title date draft tags categories summary author
[bojemoi] feat(redirector): Loki log drain via VPN 2026-04-05T00:34:18+02:00 false
commit
bojemoi
main
Git Activity
Commit 454674c par Betty dans bojemoi Betty

Commit 454674c

Repository bojemoi
Branch main
Author Betty
Hash 454674c1bdfe9f430e84739cd50ef00fe4e3a8bf

Description

  • Publish Loki port 3100 on manager host (mode: host)
  • Add loki-shipper.py: tails nginx access.log, batches to Loki every 5s
  • Dockerfile: add python3 + loki-shipper.py
  • entrypoint.sh: real log files (not stdout symlink) + tail for fly logs
    • start shipper after VPN tunnel is up
  • Fly.io machine updated: REDIRECTOR_NAME=redirector-1, LOKI_URL set

Labels: job=nginx-redirector, app=redirector-1, region=cdg

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Files Changed

M	borodino/redirector/Dockerfile
M	borodino/redirector/entrypoint.sh
A	borodino/redirector/loki-shipper.py
M	stack/01-service-hl.yml

Diff Summary

 borodino/redirector/Dockerfile      |  2 +
 borodino/redirector/entrypoint.sh   | 13 +++++--
 borodino/redirector/loki-shipper.py | 73 +++++++++++++++++++++++++++++++++++++
 stack/01-service-hl.yml             |  6 ++-
 4 files changed, 90 insertions(+), 4 deletions(-)