From db1305f5c2ba2b466cfef9803834c363a212ea12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Mureau?= Date: Wed, 9 Sep 2026 15:30:19 +0200 Subject: [PATCH] =?UTF-8?q?Rec=C3=A2bler=20les=20URLs=20MLflow/MinIO=20ver?= =?UTF-8?q?s=20gregoiremureau.com=20dans=20les=20exemples.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les secrets restent dans Vaultwarden ; la prod k3s utilise déjà les SVC in-cluster. --- .env.example | 20 ++++++++++++++++++++ .gitignore | 1 + docs/blog.fr.md | 3 ++- docs/blog.md | 3 ++- 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..d642528 --- /dev/null +++ b/.env.example @@ -0,0 +1,20 @@ +# ============================================================================= +# Copier vers .env (gitignoré) depuis Vaultwarden : item « P7 .env sentiment-api » +# ============================================================================= + +# MLflow / MinIO — depuis un poste (Tailscale ou internet) +MLFLOW_TRACKING_URI=https://mlflow.gregoiremureau.com +MLFLOW_S3_ENDPOINT_URL=https://minio-api.gregoiremureau.com +AWS_ACCESS_KEY_ID=minio_access_key +AWS_SECRET_ACCESS_KEY=minio_secret_key + +# Prod k3s (déjà en place, ne pas mettre dans ce fichier local) : +# MLFLOW_TRACKING_URI=http://mlflow.mlflow.svc.cluster.local:5000 +# MLFLOW_S3_ENDPOINT_URL=http://minio.mlflow.svc.cluster.local:9000 + +SMTP_SERVER=mail.example.com +SMTP_PORT=587 +SMTP_EMAIL=noreply@example.com +SMTP_PASSWORD=your_smtp_password +SMTP_FROM_ALIAS=noreply@example.com +ADMIN_EMAIL=admin@example.com diff --git a/.gitignore b/.gitignore index f900b66..8a129dd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ **/downloaded_artifacts **/.env **/.env.* +!.env.example **/.pytest_cache **/__pycache__ *.pem diff --git a/docs/blog.fr.md b/docs/blog.fr.md index 8b3fb20..6456a34 100644 --- a/docs/blog.fr.md +++ b/docs/blog.fr.md @@ -144,7 +144,8 @@ Depuis cette modification, le NAS peut exécuter l’API sans erreurs. Le projet propose un **double déploiement** de l’API, en local et dans le cloud : -- 🏠 **NAS local** : [sentiment-api.greg-madman-nas.duckdns.org](https://sentiment-api.greg-madman-nas.duckdns.org)\ +- 🏠 **NAS (actuel)** : [api.gregoiremureau.com/ml/sentiment/](https://api.gregoiremureau.com/ml/sentiment/) + *(l’ancienne URL DuckDNS `sentiment-api.greg-madman-nas.duckdns.org` redirige.)* Interface Docker Compose sur le NAS : ![docker compose openmediavault](openmediavault_docker-compose_settings.png) diff --git a/docs/blog.md b/docs/blog.md index e386f4c..b29b97c 100644 --- a/docs/blog.md +++ b/docs/blog.md @@ -146,7 +146,8 @@ Since this change, the NAS can run the API without errors. The project offers a **dual API deployment**, locally and in the cloud: -- 🏠 **Local NAS**: [sentiment-api.greg-madman-nas.duckdns.org](https://sentiment-api.greg-madman-nas.duckdns.org) +- 🏠 **NAS (actuel)** : [api.gregoiremureau.com/ml/sentiment/](https://api.gregoiremureau.com/ml/sentiment/) + *(l’ancienne URL DuckDNS `sentiment-api.greg-madman-nas.duckdns.org` redirige.)* Docker Compose interface on the NAS: ![Docker Compose OpenMediaVault](openmediavault_docker-compose_settings.png)