Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

LibreOffice Online と Nextcloud 環境の 構築方法と大規模運用のための実験

141 views

Published on

オープンソースカンファレンス2020 Osakaでの発表資料です。
https://www.ospn.jp/osc2020-osaka/modules/eguide/event.php?eid=41

Published in: Software
  • Be the first to comment

  • Be the first to like this

LibreOffice Online と Nextcloud 環境の 構築方法と大規模運用のための実験

  1. 1. LibreOffice Online と Nextcloud 環境の 構築方法と大規模運用のための実験 ランドリアナリヴ二 二リナリサンタトゥラ 令和2年 01 月 24 日・大阪・日本 This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 Unported License
  2. 2. 2 ランドリアナリヴ二 二リナリサンタトゥラ From Madagascar Work at iCRAFT (intern): Collabora Online and Nextcloud integration Permissioned blockchain solution using Hyperledger Graduated from Kobe Institute of Computing September 2019 JICA Program participant
  3. 3. 3 マダガスカルはどこですか
  4. 4. 4 マダガスカル共和国 面積:日本の約 1.6 倍 首都:アンタナナリボ 人口: 2600 万人 公用語: マダガスカル語 フランス語 宗教: キリスト教 41 % 伝統宗教 52 % イスラム教 7 %
  5. 5. 5 Architecture diagram Overall description of the test environment.
  6. 6. 6 Test environment Nextcloud HAProxy Loadbalancer Collabora Online servers Cloud hostedInternet
  7. 7. 7 Other considerations [3] Same version [2] HTTP traffic [1] SSL termination Nextcloud HAProxy Loadbalancer Collabora Online servers
  8. 8. 8 How it works Web browser Nextcloud Collabora Online Collabora Online call File request Storage Transmit to Collabora Online interface [1] [2] [3] [4] [5]
  9. 9. 9 Installation and configuration Required packages installation and setting.
  10. 10. 10 Overview of the configuration Nextcloud MySQL PHP NGINX HAProxy Collabora1 Collabora2 ... Collaboran ●SSL termination ●Header parsing ●Ports 80 & 443 ●HTTPS redirect ●Reverse proxy ●Port 9980 ●SSL off Cluster
  11. 11. 11 Nextcloud For Debian based GNU/Linux distributions: For Red Hat based GNU/Linux distributions: $ sudo apt install nginx mysql-server mysql-client $ sudo yum install nginx mariadb-server mariadb
  12. 12. 12 Nextcloud database Database creation (MySQL/MariaDB): $ sudo mysql -u root -p > CREATE DATABASE nextcloud; > CREATE USER icraft@localhost IDENTIFIED BY 'hyper-secret-pass'; > GRANT ALL PRIVILEGES ON nextcloud.* TO icraft@localhost; > flush privileges; > exit
  13. 13. 13 Nextcloud installation Nextcloud installation from source package: $ cd /var/www/ $ sudo wget https://download.nextcloud.com/server/releases/latest.tar.bz2 $ sudo tar xvf latest.tar.bz2 $ sudo mkdir -p nextcloud/data/ $ sudo chown -R www-data:www-data nextcloud/
  14. 14. 14 NGINX configuration: General section Filename: /etc/nginx/sites-enabled/nextcloud
  15. 15. 15 NGINX configuration: Proxy section Filename: /etc/nginx/sites-enabled/nextcloud
  16. 16. 16 HAProxy For Debian based GNU/Linux distributions: For Red Hat based GNU/Linux distributions: Configuration file check: $ sudo apt install haproxy $ sudo yum install haproxy $ sudo haproxy -c -V -f /etc/haproxy/haproxy.cfg
  17. 17. 17 HAProxy configuration Filename: /etc/haproxy/haproxy.cfg
  18. 18. 18 HAProxy balance algorithm hdr <header_name> Selects a server based on an HTTP request header. If there won’t be any value in the header, it will work like the roundrobin algorithm. Useful for linking users to servers by browser type, query address, and so on. Reference: https://cbonte.github.io/haproxy-dconv/1.8/configuration.html
  19. 19. 19 Collabora Online Add Collabora repository, then issue: Binaries installation: Administrative password setup: $ sudo apt update $ sudo apt install loolwsd collabora-online-brand $ sudo loolconfig set-admin-password
  20. 20. 20 Collabora Online configuration Filename: /etc/loolwsd/loolwsd.xml
  21. 21. 21 Nextcloud integration
  22. 22. 22 Conclusion Online based LibreOffice provides many advantages for users Combined with Nextcloud, it becomes a secure and powerful collaborative tool Containers make the deployment of the system much easier It can be scaled-out using HAProxy
  23. 23. 23 Ongoing works Improve availability: HAProxy and Nextcloud → SpoF Storage Work with containers: Docker Kubernetes
  24. 24. 24 Thank you Contact us at: librepc@icraft.jp Or visit our websites: https://librepc.jp https://icraft.jp

×