post: commit 454674c in bojemoi
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 10s

This commit is contained in:
Betty
2026-04-05 00:34:18 +02:00
parent 6004b237eb
commit dcf5143806

View File

@@ -0,0 +1,51 @@
---
title: "[bojemoi] feat(redirector): Loki log drain via VPN"
date: 2026-04-05T00:34:18+02:00
draft: false
tags: ["commit", "bojemoi", "main"]
categories: ["Git Activity"]
summary: "Commit 454674c par Betty dans bojemoi"
author: "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(-)
```