Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-socio-fiscal-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
b2dcaeeb
Commit
b2dcaeeb
authored
1 year ago
by
Emmanuel Raviart
Committed by
Toufic Batache
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
a84ac6b0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!174
Ajout des demandes du calcul budget
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
example.env
+2
-1
2 additions, 1 deletion
example.env
src/lib/server/auditors/config.ts
+3
-8
3 additions, 8 deletions
src/lib/server/auditors/config.ts
src/lib/server/config.ts
+2
-0
2 additions, 0 deletions
src/lib/server/config.ts
with
7 additions
and
9 deletions
example.env
+
2
−
1
View file @
b2dcaeeb
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
src/lib/server/auditors/config.ts
+
3
−
8
View file @
b2dcaeeb
...
@@ -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
"
,
...
...
This diff is collapsed.
Click to expand it.
src/lib/server/config.ts
+
2
−
0
View file @
b2dcaeeb
...
@@ -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
"
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment