Browse Source

Etherpad port

Bob Mottram 8 years ago
parent
commit
16e8739f5b
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/freedombone-app-etherpad

+ 3
- 2
src/freedombone-app-etherpad View File

@@ -36,6 +36,7 @@ SHOW_ON_ABOUT=1
36 36
 ETHERPAD_DOMAIN_NAME=
37 37
 ETHERPAD_CODE=
38 38
 ETHERPAD_ONION_PORT=8101
39
+ETHERPAD_PORT=9001
39 40
 ETHERPAD_REPO="https://github.com/ether/etherpad-lite"
40 41
 ETHERPAD_COMMIT='223127bf39d2ba431d9c1965a7f2aadadc73d77a'
41 42
 ETHERPAD_ADMIN_PASSWORD=
@@ -87,7 +88,7 @@ function create_etherpad_settings {
87 88
     echo '  "favicon": "favicon.ico",' >> /var/www/$ETHERPAD_DOMAIN_NAME/htdocs/settings.json
88 89
 
89 90
     echo '  "ip": "0.0.0.0",' >> /var/www/$ETHERPAD_DOMAIN_NAME/htdocs/settings.json
90
-    echo '  "port" : 9001,' >> /var/www/$ETHERPAD_DOMAIN_NAME/htdocs/settings.json
91
+    echo "  \"port\" : ${ETHERPAD_PORT}," >> /var/www/$ETHERPAD_DOMAIN_NAME/htdocs/settings.json
91 92
 
92 93
     echo '  "showSettingsInAdminPage" : true,' >> /var/www/$ETHERPAD_DOMAIN_NAME/htdocs/settings.json
93 94
 
@@ -554,7 +555,7 @@ function install_etherpad {
554 555
         echo '  location / {' >> $etherpad_nginx_site
555 556
         function_check nginx_limits
556 557
         nginx_limits $ETHERPAD_DOMAIN_NAME '15m'
557
-        echo '    proxy_pass        http://localhost:9001/;' >> $etherpad_nginx_site
558
+        echo "    proxy_pass        http://localhost:${ETHERPAD_PORT}/;" >> $etherpad_nginx_site
558 559
         echo '    proxy_set_header  Host $host;' >> $etherpad_nginx_site
559 560
         echo '    proxy_buffering   off;' >> $etherpad_nginx_site
560 561
         echo '  }' >> $etherpad_nginx_site