Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NoCloud-Auto-Installer
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
Operate
Environments
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
NoCloud-Auto-Installer
Commits
0ef45d3c
Commit
0ef45d3c
authored
3 months ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
Domaine -> domain and translate comment to english
parent
5bf4e2c0
No related branches found
No related tags found
1 merge request
!21
Services desk 81 redistributivite securimag
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
main.env.sample
+3
-3
3 additions, 3 deletions
main.env.sample
utils/configure_base_tools.sh
+5
-5
5 additions, 5 deletions
utils/configure_base_tools.sh
utils/getIgnoreIp.sh
+5
-5
5 additions, 5 deletions
utils/getIgnoreIp.sh
with
13 additions
and
13 deletions
main.env.sample
+
3
−
3
View file @
0ef45d3c
...
...
@@ -8,7 +8,7 @@ export MODS="Base GlpiAgent Traefik"
# Valid levels are security and upgrade
export MAINTENANCE_LEVEL="security"
# TODO change domain for you domain
e
of server
# TODO change domain for you domain of server
export DOMAIN="dev.tetras-libre.fr"
# TODO change admin mail
...
...
@@ -18,8 +18,8 @@ export SERVER_ADMIN="sysadmin@tetras-libre.fr"
# This has the consequence of whether or not the free tetras ssh public key is added to the authorized keys
export TETRAS_MAINTENACE=true
# TODO change ignore domain
e
s for fail2ban
export IGNORE_DOMAIN
E
S=(
# TODO change ignore domains for fail2ban
export IGNORE_DOMAINS=(
"tetrix.tetras-libre.fr"
"piculus.tetras-libre.fr"
)
...
...
This diff is collapsed.
Click to expand it.
utils/configure_base_tools.sh
+
5
−
5
View file @
0ef45d3c
...
...
@@ -49,12 +49,12 @@ EOF
ignoreips
=()
for
domain
e
in
"
${
IGNORE_DOMAIN
E
S
[@]
}
"
;
do
# U
tili
se dig
pour obtenir l'a
dress
e IP
ip
=
$(
dig +short
"
$domain
e
"
)
for
domain
in
"
${
IGNORE_DOMAINS
[@]
}
"
;
do
# Use dig
to get the IP ad
dress
ip
=
$(
dig +short
"
$domain
"
)
ignoreips
=(
"
${
ignoreips
[@]
}
"
$ip
)
#
Affiche le nom de domaine et l'a
dress
e IP
echo
"
$domain
e
:
$ip
"
#
Displays the domain name and IP ad
dress
s
echo
"
$domain
:
$ip
"
done
cat
<<
EOF
> /etc/fail2ban/jail.local
...
...
This diff is collapsed.
Click to expand it.
utils/getIgnoreIp.sh
+
5
−
5
View file @
0ef45d3c
...
...
@@ -17,10 +17,10 @@ fi
ignoreips
=()
for
domain
e
in
"
${
IGNORE_DOMAIN
E
S
[@]
}
"
;
do
# U
tili
se dig
pour obtenir l'a
dress
e IP
ip
=
$(
dig +short
"
$domain
e
"
)
for
domain
in
"
${
IGNORE_DOMAINS
[@]
}
"
;
do
# Use dig
to get the IP ad
dress
ip
=
$(
dig +short
"
$domain
"
)
ignoreips
=(
"
${
ignoreips
[@]
}
"
$ip
)
#
Affiche le nom de domaine et l'a
dress
e IP
echo
"
$domain
e
:
$ip
"
#
Displays the domain name and IP ad
dress
echo
"
$domain
:
$ip
"
done
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