etherpad-liteのインストールと起動
git clone https://github.com/ether/etherpad-lite.git cd etherpad-lite/bin ./run-sh
最初はかなり時間がかかる。
ブラウザからhttp://localhost:9001/ にアクセスすると
ネットに公開する
firewalldの設定
/etc/firewalld/zones/public.xml に追加
<port protocol="tcp" port="9001"/>
nginx.confの設定
https://expamle.com/padへアクセスするようにする。
以下を追加
location /pad {
rewrite /pad/(.*) /$1 break;
rewrite ^/pad$ /pad/ permanent;
proxy_pass http://localhost:9001/;
proxy_pass_header Server;
proxy_redirect / /pad/;
proxy_set_header Host $host;
proxy_buffering off;
}
参考
https://github.com/ether/etherpad-lite/wiki/How-to-put-Etherpad-Lite-behind-a-reverse-Proxy