Skip to content
Snippets Groups Projects
Commit b2dcaeeb authored by Emmanuel Raviart's avatar Emmanuel Raviart Committed by Toufic Batache
Browse files

WIP

parent a84ac6b0
Branches
Tags
1 merge request!174Ajout des demandes du calcul budget
...@@ -17,7 +17,8 @@ BASE_URL="http://localhost:5173" ...@@ -17,7 +17,8 @@ BASE_URL="http://localhost:5173"
# Private (for connected users) HTTP(S) URL of LexImpact Socio-Fiscal Budget server # Private (for connected users) HTTP(S) URL of LexImpact Socio-Fiscal Budget server
# BUDGET_API_URL="https://SECRET.DOMAIN.NAME/state_simulation" # BUDGET_API_URL="https://SECRET.DOMAIN.NAME/state_simulation"
# Public HTTP(S) URL of LexImpact Socio-Fiscal Budget server # URL of GitLab pipeline to run when a non-authentication user requests a budget simulation
# BUDGET_DEMAND_PIPELINE_URL="https://GITLAB.DOMAIN.NAME/api/v4/projects/PROJECT_ID/pipeline?ref=main"
# Secret key used to sign JSON web tokens sent to Budget API # Secret key used to sign JSON web tokens sent to Budget API
# BUDGET_JWT_SECRET="SECRET" # BUDGET_JWT_SECRET="SECRET"
......
...@@ -65,14 +65,9 @@ export function auditConfig( ...@@ -65,14 +65,9 @@ export function auditConfig(
auditRequire, auditRequire,
) )
} }
audit.attribute( for (const key of ["budgetApiUrl", "budgetDemandPipelineUrl"]) {
data, audit.attribute(data, key, true, errors, remainingKeys, auditHttpUrl)
"budgetApiUrl", }
true,
errors,
remainingKeys,
auditHttpUrl,
)
for (const key of [ for (const key of [
"childrenKey", "childrenKey",
"familyEntityKey", "familyEntityKey",
......
...@@ -10,6 +10,7 @@ export interface Config { ...@@ -10,6 +10,7 @@ export interface Config {
apiWebSocketBaseUrls: string[] apiWebSocketBaseUrls: string[]
baseUrl: string baseUrl: string
budgetApiUrl?: string budgetApiUrl?: string
budgetDemandPipelineUrl?: string
budgetJwtSecret?: string budgetJwtSecret?: string
childrenKey: string childrenKey: string
familyEntityKey: string familyEntityKey: string
...@@ -48,6 +49,7 @@ const [validConfig, error] = validateConfig({ ...@@ -48,6 +49,7 @@ const [validConfig, error] = validateConfig({
apiBaseUrls: process.env["API_BASE_URLS"], apiBaseUrls: process.env["API_BASE_URLS"],
baseUrl: process.env["BASE_URL"], baseUrl: process.env["BASE_URL"],
budgetApiUrl: process.env["BUDGET_API_URL"], budgetApiUrl: process.env["BUDGET_API_URL"],
budgetDemandPipelineUrl: process.env["BUDGET_DEMAND_PIPELINE_URL"],
budgetJwtSecret: process.env["BUDGET_JWT_SECRET"], budgetJwtSecret: process.env["BUDGET_JWT_SECRET"],
childrenKey: process.env["CHILDREN_KEY"], childrenKey: process.env["CHILDREN_KEY"],
familyEntityKey: process.env["FAMILY_KEY"], familyEntityKey: process.env["FAMILY_KEY"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment