oai: affiche l'URL publique <machine>.oai.ajean.link dans le panneau Acces OpenAI quand l'acces public est active

This commit is contained in:
nathaninline committed 2026-07-13 14:25:49 +02:00
1 parent b929b559c4
commit 6767a816a9
2 files changed
+25 -3

No files matched your search

+4
View File
@@ -548,6 +548,10 @@ func handleAPIKey(w http.ResponseWriter, r *http.Request) {
"masked": maskAPIKey(k),
"port": LLMPort(),
"host": localIP(),
// Accès OpenAI PUBLIC via ajean.link (passthrough SNI, VPS aveugle) : si
// activé, l'URL publique est https://<machine>.oai.ajean.link/v1.
"oai_public": os.Getenv("JEAN_LINK_ALLOW_OAI") == "1",
"machine": machineID(),
})
}