diff --git a/bundestag.io/admin/.env b/bundestag.io/admin/.env index 5a2cf398..887c7498 100644 --- a/bundestag.io/admin/.env +++ b/bundestag.io/admin/.env @@ -7,4 +7,5 @@ AI_SERVER_URL_CODEGEN=http://localhost:4003 AI_ACCESS_TOKEN=EMPTY AI_SIMULATION=true NON_NAMED_VOTES_AI_SERVER_URL=http://localhost:3005 -NON_NAMED_VOTES_AI_SECRET=CHANGE_ME \ No newline at end of file +NON_NAMED_VOTES_AI_SECRET=CHANGE_ME +PROCEDURES_SERVER_URL=http://localhost:3006 \ No newline at end of file diff --git a/bundestag.io/admin/.env.example b/bundestag.io/admin/.env.example index 43490174..6f49ff1b 100644 --- a/bundestag.io/admin/.env.example +++ b/bundestag.io/admin/.env.example @@ -7,4 +7,5 @@ AI_SERVER_URL_CODEGEN=http://localhost:4003 AI_ACCESS_TOKEN=EMPTY AI_SIMULATION=true NON_NAMED_VOTES_AI_SERVER_URL=http://localhost:3005 -NON_NAMED_VOTES_AI_SECRET=CHANGE_ME \ No newline at end of file +NON_NAMED_VOTES_AI_SECRET=CHANGE_ME +PROCEDURES_SERVER_URL=http://localhost:3006 \ No newline at end of file diff --git a/bundestag.io/admin/manifests/deployment.yaml b/bundestag.io/admin/manifests/deployment.yaml index cc174f96..783ccaa2 100644 --- a/bundestag.io/admin/manifests/deployment.yaml +++ b/bundestag.io/admin/manifests/deployment.yaml @@ -41,6 +41,8 @@ spec: value: 'http://non-named-votes-ai' - name: NON_NAMED_VOTES_AI_SECRET value: ${var.NON_NAMED_VOTES_AI_SECRET} + - name: PROCEDURES_SERVER_URL + value: 'http://procedures' ports: - containerPort: 4003 name: http diff --git a/bundestag.io/admin/src/app/list/past/page.tsx b/bundestag.io/admin/src/app/list/past/page.tsx index 45d469d8..00184c75 100644 --- a/bundestag.io/admin/src/app/list/past/page.tsx +++ b/bundestag.io/admin/src/app/list/past/page.tsx @@ -24,7 +24,7 @@ export default async function Page() { } async function getData(): Promise { - const res = await fetch('http://procedures/procedures/list/past', { + const res = await fetch(`${process.env.PROCEDURES_SERVER_URL}/procedures/list/past`, { headers: { 'Cache-Control': 'no-cache', cache: 'no-store', diff --git a/bundestag.io/admin/src/app/list/upcoming/page.tsx b/bundestag.io/admin/src/app/list/upcoming/page.tsx index abccf660..5f9b6a03 100644 --- a/bundestag.io/admin/src/app/list/upcoming/page.tsx +++ b/bundestag.io/admin/src/app/list/upcoming/page.tsx @@ -24,7 +24,7 @@ export default async function Page() { } async function getData(): Promise { - const res = await fetch('http://procedures/procedures/list/upcoming', { + const res = await fetch(`${process.env.PROCEDURES_SERVER_URL}/procedures/list/upcoming`, { headers: { 'Cache-Control': 'no-cache', cache: 'no-store',