Skip to content
Snippets Groups Projects
Commit 756a0f2c authored by Bob Mottram's avatar Bob Mottram
Browse files

localhost

parent fabc0db3
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,8 @@ ETESYNC_ONION_PORT=9860 ...@@ -46,8 +46,8 @@ ETESYNC_ONION_PORT=9860
ETESYNC_REPO="https://github.com/etesync/server-skeleton" ETESYNC_REPO="https://github.com/etesync/server-skeleton"
ETESYNC_COMMIT='8f50a69b39bef7f421590e3de26b822df0ceaf6e' ETESYNC_COMMIT='8f50a69b39bef7f421590e3de26b822df0ceaf6e'
ETESYNC_PORT_INTERNAL=8292 ETESYNC_PORT_INTERNAL=8292
ETESYNC_PUID=1000 #ETESYNC_PUID=1000
ETESYNC_PGID=1000 #ETESYNC_PGID=1000
# These parameters are used by the FreedomBox mobile app and web UI # These parameters are used by the FreedomBox mobile app and web UI
ETESYNC_SHORT_DESCRIPTION='End-to-End Encrypted Journaled Sync' ETESYNC_SHORT_DESCRIPTION='End-to-End Encrypted Journaled Sync'
...@@ -392,7 +392,7 @@ function install_etesync { ...@@ -392,7 +392,7 @@ function install_etesync {
echo ' client_max_body_size 75M;'; echo ' client_max_body_size 75M;';
echo ' location / {'; echo ' location / {';
echo ' include /etc/nginx/uwsgi_params;'; echo ' include /etc/nginx/uwsgi_params;';
echo " uwsgi_pass etesync:${ETESYNC_PORT_INTERNAL};"; echo " uwsgi_pass localhost:${ETESYNC_PORT_INTERNAL};";
echo ' }'; echo ' }';
echo ''; echo '';
echo ' location /static {'; echo ' location /static {';
...@@ -422,7 +422,7 @@ function install_etesync { ...@@ -422,7 +422,7 @@ function install_etesync {
echo ' client_max_body_size 75M;'; echo ' client_max_body_size 75M;';
echo ' location / {'; echo ' location / {';
echo ' include /etc/nginx/uwsgi_params;'; echo ' include /etc/nginx/uwsgi_params;';
echo " uwsgi_pass etesync:${ETESYNC_PORT_INTERNAL};"; echo " uwsgi_pass localhost:${ETESYNC_PORT_INTERNAL};";
echo ' }'; echo ' }';
echo ''; echo '';
echo ' location /static {'; echo ' location /static {';
...@@ -430,8 +430,8 @@ function install_etesync { ...@@ -430,8 +430,8 @@ function install_etesync {
echo ' }'; echo ' }';
echo '}'; } >> "$etesync_nginx_site" echo '}'; } >> "$etesync_nginx_site"
groupadd -r -g ${ETESYNC_PGID} etesync groupadd -r etesync
useradd -d "$ETESYNC_PATH" -r -M -s /bin/sh -g $ETESYNC_PGID -u $ETESYNC_PUID etesync useradd -d "$ETESYNC_PATH" -r -M -s /bin/sh -g etesync etesync
{ echo '[Unit]'; { echo '[Unit]';
echo 'Description=etesync'; echo 'Description=etesync';
...@@ -473,7 +473,7 @@ function install_etesync { ...@@ -473,7 +473,7 @@ function install_etesync {
python3 "${ETESYNC_PATH}/manage.py" collectstatic --no-input python3 "${ETESYNC_PATH}/manage.py" collectstatic --no-input
chown -R www-data:www-data "/var/www/$ETESYNC_DOMAIN_NAME/htdocs" chown -R www-data:www-data "/var/www/$ETESYNC_DOMAIN_NAME/htdocs"
chown -R $ETESYNC_PUID:$ETESYNC_PGID "$ETESYNC_DATA_PATH" chown -R etesync:etesync "$ETESYNC_DATA_PATH"
echo "from django.contrib.auth.models import User; User.objects.create_superuser('$MY_USERNAME', '$MY_EMAIL_ADDRESS', '$ETESYNC_ADMIN_PASSWORD')" | python3 manage.py shell echo "from django.contrib.auth.models import User; User.objects.create_superuser('$MY_USERNAME', '$MY_EMAIL_ADDRESS', '$ETESYNC_ADMIN_PASSWORD')" | python3 manage.py shell
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment