Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wtlinux_server_setup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
w4t
wtlinux_server_setup
Commits
92dbbb65
Commit
92dbbb65
authored
Mar 10, 2025
by
w4t
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtserver 0.09
parent
2b95b8c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
install_mta.sh
distros/debian12/install_mta.sh
+1
-1
install_webserver.sh
distros/debian12/install_webserver.sh
+6
-6
No files found.
distros/debian12/install_mta.sh
View file @
92dbbb65
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
InstallMTA
()
{
InstallMTA
()
{
local
START_TIME
=
$SECONDS
local
START_TIME
=
$SECONDS
echo
-n
-e
"
$IDENTATION_LVL_0
${
BWhite
}
Installing MTA
${
NC
}
"
echo
-n
-e
"
$IDENTATION_LVL_0
${
BWhite
}
Installing MTA
${
NC
}
\n
"
case
$CFG_MTA
in
case
$CFG_MTA
in
"courier"
)
"courier"
)
echo
-n
-e
"
$IDENTATION_LVL_1
Installing
${
red
}
Courier
${
NC
}
..."
echo
-n
-e
"
$IDENTATION_LVL_1
Installing
${
red
}
Courier
${
NC
}
..."
...
...
distros/debian12/install_webserver.sh
View file @
92dbbb65
...
@@ -109,8 +109,8 @@ InstallWebServer() {
...
@@ -109,8 +109,8 @@ InstallWebServer() {
#itt más csomag nevek vannak
#itt más csomag nevek vannak
apt_install nginx nginx-module-geoip nginx-module-image-filter
apt_install nginx nginx-module-geoip nginx-module-image-filter
systemctl start nginx
systemctl start nginx
>>
$PROGRAMS_INSTALL_LOG_FILES
2>&1
systemctl
enable
nginx
systemctl
enable
nginx
>>
$PROGRAMS_INSTALL_LOG_FILES
2>&1
#apt_install nginx-core nginx nginx-common nginx-module-geoip nginx-module-image-filter nginx-module-njs nginx-module-perl nginx-module-xslt
#apt_install nginx-core nginx nginx-common nginx-module-geoip nginx-module-image-filter nginx-module-njs nginx-module-perl nginx-module-xslt
...
@@ -118,7 +118,7 @@ InstallWebServer() {
...
@@ -118,7 +118,7 @@ InstallWebServer() {
mkdir
-p
/etc/nginx/sites-available /etc/nginx/sites-enabled
mkdir
-p
/etc/nginx/sites-available /etc/nginx/sites-enabled
rm
/etc/nginx/conf.d/default.conf
rm
/etc/nginx/conf.d/default.conf
mv
/etc/nginx/nginx.conf /etc/nginx/nginx.conf_old
mv
/etc/nginx/nginx.conf /etc/nginx/nginx.conf_old
cp
-rp
$PWD
/distros/debian1
0
/nginx_conf/
*
/etc/nginx
cp
-rp
$PWD
/distros/debian1
2
/nginx_conf/
*
/etc/nginx
echo
-e
"[
${
green
}
DONE
${
NC
}
]"
echo
-e
"[
${
green
}
DONE
${
NC
}
]"
## jelesek kellenek a stabil nem mainline-hoz
## jelesek kellenek a stabil nem mainline-hoz
...
@@ -163,7 +163,7 @@ InstallWebServer() {
...
@@ -163,7 +163,7 @@ InstallWebServer() {
location ~
*
"
\.
(aspx?|bash|bak?|cfg|cgi|dll|exe|git|hg|ini|jsp|log|mdb|out|sql|svn|swp|tar|rdf)$"
{
deny all
;
}
location ~
*
"
\.
(aspx?|bash|bak?|cfg|cgi|dll|exe|git|hg|ini|jsp|log|mdb|out|sql|svn|swp|tar|rdf)$"
{
deny all
;
}
location ~
*
"/(^
$|
mobiquo|phpinfo|shell|sqlpatch|thumb|thumb_editor|thumbopen|timthumb|webshell)
\.
php"
{
deny all
;
}
location ~
*
"/(^
$|
mobiquo|phpinfo|shell|sqlpatch|thumb|thumb_editor|thumbopen|timthumb|webshell)
\.
php"
{
deny all
;
}
EOF
EOF
echo
-e
"[
${
green
}
DONE
${
NC
}
]"
#echo -e "Nginx Bad Bot Blocker 223 (and growing) Nginx rules to block bad bots...\n"
#echo -e "Nginx Bad Bot Blocker 223 (and growing) Nginx rules to block bad bots...\n"
# Block bad bots V1
# Block bad bots V1
#git clone https://github.com/mariusv/nginx-badbot-blocker.git /etc/nginx
#git clone https://github.com/mariusv/nginx-badbot-blocker.git /etc/nginx
...
@@ -298,9 +298,9 @@ EOF
...
@@ -298,9 +298,9 @@ EOF
fi
fi
echo
-n
-e
"
$IDENTATION_LVL_0
${
BWhite
}
Installing extra PHP and Modules...
${
NC
}
"
echo
-n
-e
"
$IDENTATION_LVL_0
${
BWhite
}
Installing extra PHP and Modules...
${
NC
}
"
if
[[
"
$CFG_PHP_VERSION
"
==
*
"php5.5"
*
]]
;
then
#
if [[ "$CFG_PHP_VERSION" == *"php5.5"* ]]; then
#InstallPhp55
#InstallPhp55
fi
#
fi
if
[[
"
$CFG_PHP_VERSION
"
==
*
"php5.6"
*
]]
;
then
if
[[
"
$CFG_PHP_VERSION
"
==
*
"php5.6"
*
]]
;
then
InstallPhp56
InstallPhp56
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment