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"
# Private (for connected users) HTTP(S) URL of LexImpact Socio-Fiscal Budget server
# 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
# BUDGET_JWT_SECRET="SECRET"
......
......@@ -65,14 +65,9 @@ export function auditConfig(
auditRequire,
)
}
audit.attribute(
data,
"budgetApiUrl",
true,
errors,
remainingKeys,
auditHttpUrl,
)
for (const key of ["budgetApiUrl", "budgetDemandPipelineUrl"]) {
audit.attribute(data, key, true, errors, remainingKeys, auditHttpUrl)
}
for (const key of [
"childrenKey",
"familyEntityKey",
......
......@@ -10,6 +10,7 @@ export interface Config {
apiWebSocketBaseUrls: string[]
baseUrl: string
budgetApiUrl?: string
budgetDemandPipelineUrl?: string
budgetJwtSecret?: string
childrenKey: string
familyEntityKey: string
......@@ -48,6 +49,7 @@ const [validConfig, error] = validateConfig({
apiBaseUrls: process.env["API_BASE_URLS"],
baseUrl: process.env["BASE_URL"],
budgetApiUrl: process.env["BUDGET_API_URL"],
budgetDemandPipelineUrl: process.env["BUDGET_DEMAND_PIPELINE_URL"],
budgetJwtSecret: process.env["BUDGET_JWT_SECRET"],
childrenKey: process.env["CHILDREN_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