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
1583df53
Commit
1583df53
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
uwsgi package
parent
96ce8932
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-etesync
+12
-5
12 additions, 5 deletions
src/freedombone-app-etesync
with
12 additions
and
5 deletions
src/freedombone-app-etesync
+
12
−
5
View file @
1583df53
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
# Freedom in the Cloud
# Freedom in the Cloud
#
#
# etesync server
# etesync server
# https://github.com/victor-rds/docker-etesync/blob/master/Dockerfile_debian.template
#
#
# License
# License
# =======
# =======
...
@@ -150,9 +151,9 @@ function upgrade_etesync {
...
@@ -150,9 +151,9 @@ function upgrade_etesync {
# update to the next commit
# update to the next commit
set_repo_commit
"/etc/etesync"
"etesync commit"
"
$ETESYNC_COMMIT
"
"
$ETESYNC_REPO
"
set_repo_commit
"/etc/etesync"
"etesync commit"
"
$ETESYNC_COMMIT
"
"
$ETESYNC_REPO
"
cd
/etc/etesync
||
exit
368252
cd
/etc/etesync
||
exit
368252
pip3
install
-U
-r
requirements.txt
pip3
install
-U
-r
requirements.txt
uwsgi
python3 manage.py migrate
python3 manage.py migrate
chown
-R
etesync:etesync
"
/etc/etesync
"
chown
-R
etesync:etesync /etc/etesync
systemctl restart etesync
systemctl restart etesync
}
}
...
@@ -316,7 +317,7 @@ function install_etesync {
...
@@ -316,7 +317,7 @@ function install_etesync {
sed
-i
"s|ALLOWED_HOSTS =.*|ALLOWED_HOSTS = [ '
${
ETESYNC_DOMAIN_NAME
}
', '
${
ETESYNC_ONION_HOSTNAME
}
' ]|g"
/etc/etesync/etesync_server/settings.py
sed
-i
"s|ALLOWED_HOSTS =.*|ALLOWED_HOSTS = [ '
${
ETESYNC_DOMAIN_NAME
}
', '
${
ETESYNC_ONION_HOSTNAME
}
' ]|g"
/etc/etesync/etesync_server/settings.py
pip3
install
-r
requirements.txt
pip3
install
-r
requirements.txt
uwsgi
python3 manage.py migrate
python3 manage.py migrate
etesync_nginx_site
=
/etc/nginx/sites-available/
$ETESYNC_DOMAIN_NAME
etesync_nginx_site
=
/etc/nginx/sites-available/
$ETESYNC_DOMAIN_NAME
...
@@ -347,7 +348,10 @@ function install_etesync {
...
@@ -347,7 +348,10 @@ function install_etesync {
echo
' # Location'
;
echo
' # Location'
;
echo
' location / {'
;
}
>>
"
$etesync_nginx_site
"
echo
' location / {'
;
}
>>
"
$etesync_nginx_site
"
nginx_limits
"
$ETESYNC_DOMAIN_NAME
"
'75m'
nginx_limits
"
$ETESYNC_DOMAIN_NAME
"
'75m'
{
echo
" proxy_pass http://localhost:
$ETESYNC_PORT_INTERNAL
;"
;
{
echo
" proxy_set_header Authorization
\$
http_authorization;"
;
echo
" proxy_set_header X-Forwarded-User
\$
remote_user;"
;
echo
' proxy_pass_header Authorization;'
;
echo
" proxy_pass http://localhost:
$ETESYNC_PORT_INTERNAL
;"
;
echo
' }'
;
echo
' }'
;
echo
'}'
;
}
>>
"
$etesync_nginx_site
"
echo
'}'
;
}
>>
"
$etesync_nginx_site
"
else
else
...
@@ -372,7 +376,10 @@ function install_etesync {
...
@@ -372,7 +376,10 @@ function install_etesync {
echo
' # Location'
;
echo
' # Location'
;
echo
' location / {'
;
}
>>
"
$etesync_nginx_site
"
echo
' location / {'
;
}
>>
"
$etesync_nginx_site
"
nginx_limits
"
$ETESYNC_DOMAIN_NAME
"
'75m'
nginx_limits
"
$ETESYNC_DOMAIN_NAME
"
'75m'
{
echo
" proxy_pass http://localhost:
$ETESYNC_PORT_INTERNAL
;"
;
{
echo
" proxy_set_header Authorization
\$
http_authorization;"
;
echo
" proxy_set_header X-Forwarded-User
\$
remote_user;"
;
echo
' proxy_pass_header Authorization;'
;
echo
" proxy_pass http://localhost:
$ETESYNC_PORT_INTERNAL
;"
;
echo
' }'
;
echo
' }'
;
echo
'}'
;
}
>>
"
$etesync_nginx_site
"
echo
'}'
;
}
>>
"
$etesync_nginx_site
"
...
...
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