Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
camino
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
pnm-public
camino
Merge requests
!1517
chore(ecoCompose): gère le proxy http
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
chore(ecoCompose): gère le proxy http
1522-chore-ecocompose-g-re-le-proxy-http
into
master
Overview
1
Commits
2
Pipelines
4
Changes
2
Merged
BITARD Michaël
requested to merge
1522-chore-ecocompose-g-re-le-proxy-http
into
master
9 months ago
Overview
1
Commits
2
Pipelines
4
Changes
2
Expand
#1522 (closed)
Edited
9 months ago
by
BITARD Michaël
0
0
Merge request reports
Viewing commit
20358d94
Prev
Next
Show latest version
2 files
+
25
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
20358d94
mailjet ok
· 20358d94
BITARD Michaël
authored
9 months ago
packages/api/src/config/index.ts
+
14
−
0
Options
@@ -10,6 +10,19 @@ if (process.env.VITEST !== 'true') {
}
const
JWT_ALGORITHMS
=
[
'
HS256
'
,
'
HS384
'
,
'
HS512
'
,
'
RS256
'
,
'
RS384
'
,
'
RS512
'
,
'
ES256
'
,
'
ES384
'
,
'
ES512
'
,
'
PS256
'
,
'
PS384
'
,
'
PS512
'
,
'
none
'
]
as const
const
urlToSplit
=
(
url
:
undefined
|
string
):
{
value
:
string
;
host
:
string
;
port
:
number
}
|
undefined
=>
{
if
(
isNullOrUndefined
(
url
))
{
return
url
}
const
value
=
new
URL
(
url
)
return
{
value
:
url
,
host
:
value
.
host
,
port
:
parseInt
(
value
.
port
),
}
}
const
httpsProxyValidator
=
z
.
string
().
url
().
optional
().
transform
(
urlToSplit
)
const
configValidator
=
caminoConfigValidator
.
extend
({
API_HOST
:
z
.
string
(),
@@ -44,6 +57,7 @@ const configValidator = caminoConfigValidator.extend({
API_MAILJET_SECRET
:
z
.
string
(),
API_MAILJET_CONTACTS_LIST_ID
:
z
.
coerce
.
number
(),
API_MAILJET_EXPLOITANTS_GUYANE_LIST_ID
:
z
.
coerce
.
number
(),
HTTPS_PROXY
:
httpsProxyValidator
,
})
let
cacheConfig
:
z
.
infer
<
typeof
configValidator
>
Loading