Commit 307b3f09 authored by Kantz's avatar Kantz
Browse files

überschreiben der liste an sokratischen themen verhindert

parent 8c565342
...@@ -13,7 +13,7 @@ services: ...@@ -13,7 +13,7 @@ services:
"CMD", "CMD",
"python", "python",
"-c", "-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health/ready')", "import urllib.request; urllib.request.urlopen('http://backend-openai:8000/api/health/ready')",
] ]
interval: 5s interval: 5s
timeout: 3s timeout: 3s
...@@ -32,7 +32,8 @@ services: ...@@ -32,7 +32,8 @@ services:
args: args:
VITE_API_BASE_URL: http://backend-openai:8000 VITE_API_BASE_URL: http://backend-openai:8000
depends_on: depends_on:
- backend-openai backend-openai:
condition: service_healthy
restart: unless-stopped restart: unless-stopped
networks: networks:
- web - web
......
...@@ -7,6 +7,15 @@ server { ...@@ -7,6 +7,15 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
location /api/ {
proxy_pass http://backend-openai:8000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / { location / {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
......
...@@ -302,13 +302,6 @@ export function TutorSessionProvider({ children }: PropsWithChildren) { ...@@ -302,13 +302,6 @@ export function TutorSessionProvider({ children }: PropsWithChildren) {
void initTasks(); void initTasks();
}, [initTasks]); }, [initTasks]);
useEffect(() => {
if (!isTasksInitialized) {
return;
}
void loadSelectionData(selectedOrchestrator);
}, [isTasksInitialized, loadSelectionData, selectedOrchestrator]);
const setTaskFile = useCallback( const setTaskFile = useCallback(
(fileId: string) => { (fileId: string) => {
if (!fileId) { if (!fileId) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment