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

Etherpad port

parent 871da3f1
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ SHOW_ON_ABOUT=1
ETHERPAD_DOMAIN_NAME=
ETHERPAD_CODE=
ETHERPAD_ONION_PORT=8101
ETHERPAD_PORT=9001
ETHERPAD_REPO="https://github.com/ether/etherpad-lite"
ETHERPAD_COMMIT='223127bf39d2ba431d9c1965a7f2aadadc73d77a'
ETHERPAD_ADMIN_PASSWORD=
......@@ -87,7 +88,7 @@ function create_etherpad_settings {
echo ' "favicon": "favicon.ico",' >> /var/www/$ETHERPAD_DOMAIN_NAME/htdocs/settings.json
echo ' "ip": "0.0.0.0",' >> /var/www/$ETHERPAD_DOMAIN_NAME/htdocs/settings.json
echo ' "port" : 9001,' >> /var/www/$ETHERPAD_DOMAIN_NAME/htdocs/settings.json
echo " \"port\" : ${ETHERPAD_PORT}," >> /var/www/$ETHERPAD_DOMAIN_NAME/htdocs/settings.json
echo ' "showSettingsInAdminPage" : true,' >> /var/www/$ETHERPAD_DOMAIN_NAME/htdocs/settings.json
......@@ -554,7 +555,7 @@ function install_etherpad {
echo ' location / {' >> $etherpad_nginx_site
function_check nginx_limits
nginx_limits $ETHERPAD_DOMAIN_NAME '15m'
echo ' proxy_pass http://localhost:9001/;' >> $etherpad_nginx_site
echo " proxy_pass http://localhost:${ETHERPAD_PORT}/;" >> $etherpad_nginx_site
echo ' proxy_set_header Host $host;' >> $etherpad_nginx_site
echo ' proxy_buffering off;' >> $etherpad_nginx_site
echo ' }' >> $etherpad_nginx_site
......
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