forge
Explore
Log in

Don't you dare go Hollow

🩹 AI köprüsü varsayılanlarını hezarfen_backend:7656'ya çevir, konteyner adını hezarfen_zeka yap

Browse files at this commit

afe213673a286bf9927fee20461cdec0d13efddaAhmet Kaan GümüşParent: e6c5f08
  • fix
    • 🩹 AI köprüsü varsayılanlarını hezarfen_backend:7656'ya çevir, konteyner adını hezarfen_zeka yap
Show full message
fix: 🩹 AI köprüsü varsayılanlarını hezarfen_backend:7656'ya çevir, konteyner adını hezarfen_zeka yap
.github/workflows/main.ymlmodified+1 -1
@@ -71,7 +71,7 @@ env:
71 # Operatorun ayar dosyasi; deploy yalniz varligini kontrol eder, yazmaz.71 # Operatorun ayar dosyasi; deploy yalniz varligini kontrol eder, yazmaz.
72 ENV_FILE_NAME: hezarfen_zeka.env72 ENV_FILE_NAME: hezarfen_zeka.env
73 # compose.yaml'daki `container_name` (bkz. service/compose.yaml:11).73 # compose.yaml'daki `container_name` (bkz. service/compose.yaml:11).
74- CONTAINER_NAME: hezarfen-zeka-bridge74+ CONTAINER_NAME: hezarfen_zeka
75 # Saglik kapisinin on kosulu: backend'in HTTP sertifika ucu. Backend'in host75 # Saglik kapisinin on kosulu: backend'in HTTP sertifika ucu. Backend'in host
76 # loopback portu (README: `127.0.0.1:7656:7656`).76 # loopback portu (README: `127.0.0.1:7656:7656`).
77 CERT_PATH: /ai/certificate77 CERT_PATH: /ai/certificate
deploy/hezarfen_zeka.env.examplemodified+2 -2
@@ -52,12 +52,12 @@ DEEPSEEK_API_KEY=
52 # Backend'in QUIC dinleyicisi (konteyner aginda). Backend tarafinda52 # Backend'in QUIC dinleyicisi (konteyner aginda). Backend tarafinda
53 # AI_QUIC_ADDR=0.0.0.0:8090 OLMALI -- 127.0.0.1 yaziliysa backend yalniz kendi53 # AI_QUIC_ADDR=0.0.0.0:8090 OLMALI -- 127.0.0.1 yaziliysa backend yalniz kendi
54 # konteyner loopback'ine baglanir ve HICBIR servis dial-in edemez.54 # konteyner loopback'ine baglanir ve HICBIR servis dial-in edemez.
55-AI_BRIDGE_HOST=hezarfen-backend55+AI_BRIDGE_HOST=hezarfen_backend
56 AI_BRIDGE_PORT=809056 AI_BRIDGE_PORT=8090
57 57
58 # Sertifikanin cekildigi HTTP koku. Varsayilan backend konteynerinin kendi58 # Sertifikanin cekildigi HTTP koku. Varsayilan backend konteynerinin kendi
59 # adresi; backend'in yayimlanan host portu ise 127.0.0.1:7656'dir.59 # adresi; backend'in yayimlanan host portu ise 127.0.0.1:7656'dir.
60-AI_BACKEND_URL=http://hezarfen-backend:808060+AI_BACKEND_URL=http://hezarfen_backend:7656
61 AI_TLS_SERVER_NAME=localhost61 AI_TLS_SERVER_NAME=localhost
62 AI_SERVICE_NAME=zeka62 AI_SERVICE_NAME=zeka
63 63
scripts/ci-konteyner-kanit.shmodified+1 -1
@@ -107,7 +107,7 @@ MSYS_NO_PATHCONV=1 "$MOTOR" run -d --name "$KAP" \
107 -e ZEKA_REFRESH_INTERVAL_SECS=3600 \107 -e ZEKA_REFRESH_INTERVAL_SECS=3600 \
108 -e ZEKA_SCHOOLS=hezarfen-demo \108 -e ZEKA_SCHOOLS=hezarfen-demo \
109 -e AI_BRIDGE_HOST=ulasilamaz.gecersiz \109 -e AI_BRIDGE_HOST=ulasilamaz.gecersiz \
110- -e AI_BACKEND_URL=http://ulasilamaz.gecersiz:8080 \110+ -e AI_BACKEND_URL=http://ulasilamaz.gecersiz:7656 \
111 -e AI_RECONNECT_SECS=1 \111 -e AI_RECONNECT_SECS=1 \
112 -e AI_RECONNECT_MAX_SECS=8 \112 -e AI_RECONNECT_MAX_SECS=8 \
113 -e LOG_LEVEL=debug \113 -e LOG_LEVEL=debug \
service/.env.examplemodified+2 -2
@@ -35,9 +35,9 @@ DEEPSEEK_API_KEY=
35 # KOPRU35 # KOPRU
36 # ============================================================================36 # ============================================================================
37 37
38-AI_BRIDGE_HOST=hezarfen-backend38+AI_BRIDGE_HOST=hezarfen_backend
39 AI_BRIDGE_PORT=809039 AI_BRIDGE_PORT=8090
40-AI_BACKEND_URL=http://hezarfen-backend:808040+AI_BACKEND_URL=http://hezarfen_backend:7656
41 AI_TLS_SERVER_NAME=localhost41 AI_TLS_SERVER_NAME=localhost
42 AI_SERVICE_NAME=zeka42 AI_SERVICE_NAME=zeka
43 43
service/compose.yamlmodified+4 -4
@@ -13,14 +13,14 @@ services:
13 # yazilsaydi deploy yeni imaji yukleyip ESKI imaji kosmaya devam ederdi --13 # yazilsaydi deploy yeni imaji yukleyip ESKI imaji kosmaya devam ederdi --
14 # tag rotasyonu ve geri donus (previous_tag) bu satira baglidir.14 # tag rotasyonu ve geri donus (previous_tag) bu satira baglidir.
15 image: localhost/hezarfen-zeka:${HEZARFEN_TAG:-current}15 image: localhost/hezarfen-zeka:${HEZARFEN_TAG:-current}
16- container_name: hezarfen-zeka-bridge16+ container_name: hezarfen_zeka
17 init: true17 init: true
18 command: ["python", "-m", "src.bridge"]18 command: ["python", "-m", "src.bridge"]
19 environment:19 environment:
20 # --- kopru adresi ---20 # --- kopru adresi ---
21- AI_BRIDGE_HOST: ${AI_BRIDGE_HOST:-hezarfen-backend}21+ AI_BRIDGE_HOST: ${AI_BRIDGE_HOST:-hezarfen_backend}
22 AI_BRIDGE_PORT: ${AI_BRIDGE_PORT:-8090}22 AI_BRIDGE_PORT: ${AI_BRIDGE_PORT:-8090}
23- AI_BACKEND_URL: ${AI_BACKEND_URL:-http://hezarfen-backend:8080}23+ AI_BACKEND_URL: ${AI_BACKEND_URL:-http://hezarfen_backend:7656}
24 AI_TLS_SERVER_NAME: ${AI_TLS_SERVER_NAME:-localhost}24 AI_TLS_SERVER_NAME: ${AI_TLS_SERVER_NAME:-localhost}
25 # --- kimlik ---25 # --- kimlik ---
26 # Zorunlu. Interpolasyon kullanilir, literal sir YAZILMAZ.26 # Zorunlu. Interpolasyon kullanilir, literal sir YAZILMAZ.
@@ -126,5 +126,5 @@ networks:
126 backend_net:126 backend_net:
127 external: true127 external: true
128 # PARAMETRIK: ag adi dagitimdan dagitima degisir (podcast'in deseni).128 # PARAMETRIK: ag adi dagitimdan dagitima degisir (podcast'in deseni).
129- # Celebi bunu sabit yaziyor ve ag baska adla kuruldugunda compose patliyor.129+ # Kardes servisler (podcast, Celebi) de ayni deseni kullanir.
130 name: ${HEZARFEN_NET:-hezarfen_backend_default}130 name: ${HEZARFEN_NET:-hezarfen_backend_default}
service/docs/DAGITIM.mdmodified+6 -6
@@ -91,7 +91,7 @@ podman compose up -d
91 ### tek kap olarak91 ### tek kap olarak
92 92
93 ```bash93 ```bash
94-podman run -d --name hezarfen-zeka-bridge \94+podman run -d --name hezarfen_zeka \
95 --network hezarfen_backend_default \95 --network hezarfen_backend_default \
96 -e AI_SHARED_TOKEN=... \96 -e AI_SHARED_TOKEN=... \
97 -e ZEKA_PG_DSN=postgres://<kullanici>:<parola>@<host>:5432/<okul_veritabani> \97 -e ZEKA_PG_DSN=postgres://<kullanici>:<parola>@<host>:5432/<okul_veritabani> \
@@ -159,8 +159,8 @@ bir `.env` dosyasindan gelir. CI her kosuda bu bicimi denetler.
159 | Degisken | Varsayilan | Not |159 | Degisken | Varsayilan | Not |
160 |---|---|---|160 |---|---|---|
161 | `HEZARFEN_NET` | `hezarfen_backend_default` | Katilinacak **dis** agin adi. |161 | `HEZARFEN_NET` | `hezarfen_backend_default` | Katilinacak **dis** agin adi. |
162-| `AI_BRIDGE_HOST` / `AI_BRIDGE_PORT` | `hezarfen-backend` / `8090` | QUIC ucu. |162+| `AI_BRIDGE_HOST` / `AI_BRIDGE_PORT` | `hezarfen_backend` / `8090` | QUIC ucu. |
163-| `AI_BACKEND_URL` | `http://hezarfen-backend:8080` | Sertifika cekilen HTTP ucu. |163+| `AI_BACKEND_URL` | `http://hezarfen_backend:7656` | Sertifika cekilen HTTP ucu. |
164 | `AI_TLS_FINGERPRINT` | *(bos)* | **Bos = TOFU.** Asagiya bakin. |164 | `AI_TLS_FINGERPRINT` | *(bos)* | **Bos = TOFU.** Asagiya bakin. |
165 | `AI_MAX_CONCURRENT` | `4` | Backend clamp'i: `1..=AI_MAX_CONCURRENT_PER_WORKER`. |165 | `AI_MAX_CONCURRENT` | `4` | Backend clamp'i: `1..=AI_MAX_CONCURRENT_PER_WORKER`. |
166 | `AI_RECONNECT_SECS` / `AI_RECONNECT_MAX_SECS` | `3` / `120` | Geri cekilme taban ve tavani. |166 | `AI_RECONNECT_SECS` / `AI_RECONNECT_MAX_SECS` | `3` / `120` | Geri cekilme taban ve tavani. |
@@ -193,9 +193,9 @@ networks:
193 name: ${HEZARFEN_NET:-hezarfen_backend_default}193 name: ${HEZARFEN_NET:-hezarfen_backend_default}
194 ```194 ```
195 195
196-Ag adi **parametriktir**. Kardes servis Celebi bunu sabit yaziyor ve ag baska196+Ag adi **parametriktir**. Kardes servisler (podcast, Celebi) de ayni deseni
197-bir adla kuruldugunda compose patliyor. CI, `HEZARFEN_NET`'in gercekten197+kullanir; ag farkli adla kurulduysa `HEZARFEN_NET` ile verilir. CI, bunun
198-gecersiz kilinabildigini kosturarak dogrular.198+gercekten gecersiz kilinabildigini kosturarak dogrular.
199 199
200 Ag mevcut degilse once olusturun:200 Ag mevcut degilse once olusturun:
201 201
service/src/config.pymodified+2 -2
@@ -139,10 +139,10 @@ class Config:
139 # --- kopru adresi --------------------------------------------------139 # --- kopru adresi --------------------------------------------------
140 # Backend QUIC *sunucusudur*, servis ona dial-out eder140 # Backend QUIC *sunucusudur*, servis ona dial-out eder
141 # (`ai/protocol.rs:5-7`). Bu yuzden ZEKA port acmaz.141 # (`ai/protocol.rs:5-7`). Bu yuzden ZEKA port acmaz.
142- self.host = env_str("AI_BRIDGE_HOST", "hezarfen-backend")142+ self.host = env_str("AI_BRIDGE_HOST", "hezarfen_backend")
143 self.port = env_int("AI_BRIDGE_PORT", 8090, 1, 65535)143 self.port = env_int("AI_BRIDGE_PORT", 8090, 1, 65535)
144 # Sertifikayi cektigimiz HTTP adresi; QUIC adresinden ayridir.144 # Sertifikayi cektigimiz HTTP adresi; QUIC adresinden ayridir.
145- self.backend_url = env_str("AI_BACKEND_URL", "http://hezarfen-backend:8080").rstrip("/")145+ self.backend_url = env_str("AI_BACKEND_URL", "http://hezarfen_backend:7656").rstrip("/")
146 self.server_name = env_str("AI_TLS_SERVER_NAME", "localhost")146 self.server_name = env_str("AI_TLS_SERVER_NAME", "localhost")
147 147
148 # --- kimlik ---------------------------------------------------------148 # --- kimlik ---------------------------------------------------------
service/tests/test_config.pymodified+1 -1
@@ -98,7 +98,7 @@ class ParsingTests(unittest.TestCase):
98 def test_defaults_are_the_documented_ones(self):98 def test_defaults_are_the_documented_ones(self):
99 with _env(AI_SHARED_TOKEN="t"):99 with _env(AI_SHARED_TOKEN="t"):
100 settings = config.Config()100 settings = config.Config()
101- self.assertEqual(settings.host, "hezarfen-backend")101+ self.assertEqual(settings.host, "hezarfen_backend")
102 self.assertEqual(settings.port, 8090)102 self.assertEqual(settings.port, 8090)
103 self.assertEqual(settings.service, "zeka")103 self.assertEqual(settings.service, "zeka")
104 self.assertEqual(settings.source_mode, "bridge")104 self.assertEqual(settings.source_mode, "bridge")