Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
4d6c8b81
Commit
4d6c8b81
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Restart nginx for matrix
parent
cab47adb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-matrix
+9
-3
9 additions, 3 deletions
src/freedombone-app-matrix
with
9 additions
and
3 deletions
src/freedombone-app-matrix
+
9
−
3
View file @
4d6c8b81
...
...
@@ -184,7 +184,7 @@ function logging_off_matrix {
fi
}
function
matrix_nginx
{
function
create_
matrix_nginx
_config
{
matrix_nginx_site
=
/etc/nginx/sites-available/
$MATRIX_DOMAIN_NAME
if
[[
$ONION_ONLY
==
"no"
]]
;
then
{
echo
'server {'
;
...
...
@@ -278,6 +278,8 @@ function matrix_nginx {
sed
-i
's|limit_conn conn_limit_per_ip.*|limit_conn conn_limit_per_ip 50;|g'
"
$matrix_nginx_site
"
sed
-i
's|limit_req zone.*|limit_req zone=req_limit_per_ip burst=50 nodelay;|g'
"
$matrix_nginx_site
"
nginx_ensite
$MATRIX_DOMAIN_NAME
function_check add_ddns_domain
add_ddns_domain
$MATRIX_DOMAIN_NAME
}
...
...
@@ -749,6 +751,8 @@ function install_home_server {
systemctl restart matrix
fi
systemctl restart nginx
echo
$'Waiting for the database to be created'
# shellcheck disable=SC2034
for
i
in
{
1..60
}
...
...
@@ -866,8 +870,10 @@ function install_matrix {
if
[
!
-f
"
$MATRIX_PIP
"
]
;
then
if
[[
"
$MATRIX_PIP
"
==
*
'pip'
]]
;
then
# shellcheck disable=SC2230
MATRIX_PIP
=
$(
which pip
)
else
# shellcheck disable=SC2230
MATRIX_PIP
=
$(
which pip3
)
fi
fi
...
...
@@ -906,8 +912,8 @@ function install_matrix {
increment_app_install_progress
function_check matrix_nginx
matrix_nginx
function_check
create_
matrix_nginx
_config
create_
matrix_nginx
_config
increment_app_install_progress
...
...
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