Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Merge requests
!1382
feat(bma): configure with env var
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat(bma): configure with env var
bma-env-conf
into
dev
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Éloïs
requested to merge
bma-env-conf
into
dev
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
dev
version 2
b334fa22
3 years ago
version 1
0162366c
3 years ago
dev (base)
and
latest version
latest version
5dbcd68f
1 commit,
3 years ago
version 2
b334fa22
1 commit,
3 years ago
version 1
0162366c
1 commit,
3 years ago
2 files
+
37
−
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)
app/modules/bma/lib/network.ts
+
9
−
0
Options
@@ -80,7 +80,16 @@ export const Network = {
if
(
whitelist
.
indexOf
(
"
127.0.0.1
"
)
===
-
1
)
{
whitelist
.
push
(
"
127.0.0.1
"
);
}
if
(
whitelist
.
indexOf
(
"
::1
"
)
===
-
1
)
{
whitelist
.
push
(
"
::1
"
);
}
const
ddosConf
=
server
.
conf
.
dos
||
{};
// Override BMA DDOS configuration from environment variables
if
(
process
.
env
.
DUNITER_BMA_WHITELIST
)
{
ddosConf
.
whitelist
=
process
.
env
.
DUNITER_BMA_WHITELIST
.
split
(
"
,
"
);
}
ddosConf
.
silentStart
=
true
;
ddosConf
.
whitelist
=
Underscore
.
uniq
(
(
ddosConf
.
whitelist
||
[]).
concat
(
whitelist
)
Loading