Improving etherpad
This commit is contained in:
parent
86705525ad
commit
d20df8f860
|
@ -3182,9 +3182,9 @@ git clone git://github.com/ether/etherpad-lite.git etherpad
|
||||||
Edit the configuration file
|
Edit the configuration file
|
||||||
|
|
||||||
#+BEGIN_SRC: bash
|
#+BEGIN_SRC: bash
|
||||||
cd etherpad
|
cd /var/www/$HOSTNAME/htdocs/etherpad
|
||||||
cp settings.json.template settings.json
|
cp settings.json.template settings.json
|
||||||
emacs settings.json
|
emacs /var/www/$HOSTNAME/htdocs/etherpad/settings.json
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Change the following settings. /rAnD0m5tRIng/ should be altered to a random string 10 characters in length.
|
Change the following settings. /rAnD0m5tRIng/ should be altered to a random string 10 characters in length.
|
||||||
|
@ -3218,6 +3218,18 @@ adduser --system --home=/var/www/$HOSTNAME/htdocs/etherpad/ --group etherpad
|
||||||
chown -R etherpad: /var/www/$HOSTNAME/htdocs/etherpad/
|
chown -R etherpad: /var/www/$HOSTNAME/htdocs/etherpad/
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Chick that it runs.
|
||||||
|
|
||||||
|
#+BEGIN_SRC: bash
|
||||||
|
su -c "/var/www/$HOSTNAME/htdocs/etherpad/bin/run.sh" -s /bin/bash etherpad
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
If it ran without exiting abnormally then kill the process.
|
||||||
|
|
||||||
|
#+BEGIN_SRC: bash
|
||||||
|
pkill -u etherpad
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
Create an init script using your favorite editor, changing /mydomainname.com/ to your domain name.
|
Create an init script using your favorite editor, changing /mydomainname.com/ to your domain name.
|
||||||
|
|
||||||
#+BEGIN_SRC: bash
|
#+BEGIN_SRC: bash
|
||||||
|
@ -3323,27 +3335,27 @@ emacs /etc/apache2/sites-available/$HOSTNAME
|
||||||
Within the 443 section add the following:
|
Within the 443 section add the following:
|
||||||
|
|
||||||
#+BEGIN_SRC: bash
|
#+BEGIN_SRC: bash
|
||||||
<Location /var/www/mydomainname.com/htdocs/etherpad/>
|
<Location /etherpad>
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
AuthName "Welcome to Etherpad"
|
AuthName "Welcome to Etherpad"
|
||||||
AuthUserFile /path/to/svn.passwd
|
AuthUserFile /home/mydomainname.com/public_html/.htpasswd
|
||||||
AuthGroupFile /path/to/svn.group
|
AuthGroupFile /home/mydomainname.com/public_html/.htgroup
|
||||||
Require group etherpad
|
Require group etherpad
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
<IfModule mod_proxy.c>
|
<IfModule mod_proxy.c>
|
||||||
ProxyVia On
|
ProxyVia On
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
ProxyPass / http://127.0.0.1:9001/
|
ProxyPass /etherpad http://192.168.1.60:9001/
|
||||||
ProxyPassReverse / http://127.0.0.1:9001/
|
ProxyPassReverse /etherpad 192.168.1.60:9001/
|
||||||
ProxyPreserveHost on
|
ProxyPreserveHost on
|
||||||
<Proxy *>
|
<Proxy *>
|
||||||
Options FollowSymLinks MultiViews
|
Options FollowSymLinks MultiViews
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
allow from all
|
allow from all
|
||||||
</Proxy>
|
</Proxy>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Save and exit, then restart Apache.
|
Save and exit, then restart Apache.
|
||||||
|
@ -3354,6 +3366,28 @@ a2enmod proxy proxy_http headers deflate
|
||||||
service apache2 restart
|
service apache2 restart
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Create some passwords for users.
|
||||||
|
|
||||||
|
#+BEGIN_SRC: bash
|
||||||
|
mkdir /home/$HOSTNAME
|
||||||
|
mkdir /home/$HOSTNAME/public_html
|
||||||
|
htpasswd -c /home/$HOSTNAME/public_html/.htpasswd myusername
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Create a user group.
|
||||||
|
|
||||||
|
#+BEGIN_SRC: bash
|
||||||
|
emacs /home/$HOSTNAME/public_html/.htgroup
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Add the following:
|
||||||
|
|
||||||
|
#+BEGIN_SRC: bash
|
||||||
|
etherpad: myusername
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Save and exit.
|
||||||
|
|
||||||
** Install Tripwire
|
** Install Tripwire
|
||||||
|
|
||||||
#+BEGIN_VERSE
|
#+BEGIN_VERSE
|
||||||
|
|
Loading…
Reference in New Issue