From 7bd4c654ca1557c6289a657a9ed6467f3bb5d794 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Mon, 2 Sep 2024 07:44:43 -0600 Subject: [PATCH] Nextcloud initial setup --- docs/_source/cloud-libre-is.rst | 93 +++++++++++++++++++ .../locale/en/LC_MESSAGES/cloud-libre-is.po | 42 ++++++++- 2 files changed, 134 insertions(+), 1 deletion(-) diff --git a/docs/_source/cloud-libre-is.rst b/docs/_source/cloud-libre-is.rst index bd45f6d..8ad9e70 100644 --- a/docs/_source/cloud-libre-is.rst +++ b/docs/_source/cloud-libre-is.rst @@ -5,4 +5,97 @@ Administrator documentation for Libre Cloud. ``_ +The site is based on Nextcloud software. + + ``_ + + +Firewall +======== +Open ports 80 and 443. + +.. code-block:: cfg + + -A INPUT -p tcp --dport 80 -j ACCEPT + -A INPUT -p tcp --dport 443 -j ACCEPT + + +Apache +====== +Initial setup of Apache with Certbot. + +.. code-block:: sh + + sudo su - + apt install python3-certbot-apache + echo "cloud.libre.is" > /var/www/html/index.html + certbot -d cloud.libre.is + systemctl restart apache2 + + +Nextcloud +========= +Get Nextcloud source. + +.. code-block:: sh + + wget https://download.nextcloud.com/server/releases/latest.tar.bz2 + wget https://download.nextcloud.com/server/releases/latest.tar.bz2.sha256 + cat latest.tar.bz2.sha256 ; sha256sum latest.tar.bz2 + + +Apache More +=========== +Set up Apache for nextcloud. + +.. code-block:: apache + + + ServerName cloud.libre.is + ServerAdmin webmaster@localhost + DocumentRoot /var/www/html/nextcloud + ErrorLog ${APACHE_LOG_DIR}/error-cloud-libre-is.log + CustomLog ${APACHE_LOG_DIR}/access-cloud-libre-is.log combined + RewriteEngine on + ReWriteCond %{HTTPS} off + ReWriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + RewriteCond %{SERVER_NAME} =cloud.libre.is + RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] + Alias /nextcloud "/var/www/html/nextcloud/" + Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains" + + Require all granted + AllowOverride All + Options FollowSymLinks MultiViews + + Dav off + + + + + + ServerName cloud.libre.is + ServerAdmin webmaster@localhost + DocumentRoot /var/www/html/nextcloud + ErrorLog ${APACHE_LOG_DIR}/error-cloud-libre-is.log + CustomLog ${APACHE_LOG_DIR}/access-cloud-libre-is.log combined + RewriteEngine on + ReWriteRule ^(.*)$ https://%1$1 [L,R=301] + ErrorDocument 404 /en/404.html + #Include /etc/letsencrypt/options-ssl-apache.conf + Include /etc/letsencrypt/options-ssl-apache.conf + SSLCertificateFile /etc/letsencrypt/live/cloud.libre.is/fullchain.pem + SSLCertificateKeyFile /etc/letsencrypt/live/cloud.libre.is/privkey.pem + Alias /nextcloud "/var/www/html/nextcloud/" + Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains" + + Require all granted + AllowOverride All + Options FollowSymLinks MultiViews + + Dav off + + + + # vim: syntax=apache ts=4 sw=4 sts=4 sr noet diff --git a/docs/_source/locale/en/LC_MESSAGES/cloud-libre-is.po b/docs/_source/locale/en/LC_MESSAGES/cloud-libre-is.po index aadd8c3..76cf184 100644 --- a/docs/_source/locale/en/LC_MESSAGES/cloud-libre-is.po +++ b/docs/_source/locale/en/LC_MESSAGES/cloud-libre-is.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: Libre Developers Documentation 0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-02 07:12-0600\n" +"POT-Creation-Date: 2024-09-02 07:42-0600\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: en\n" @@ -31,3 +31,43 @@ msgstr "" #: ../../../_source/cloud-libre-is.rst:6 msgid "``_" msgstr "" + +#: ../../../_source/cloud-libre-is.rst:8 +msgid "The site is based on Nextcloud software." +msgstr "" + +#: ../../../_source/cloud-libre-is.rst:10 +msgid "``_" +msgstr "" + +#: ../../../_source/cloud-libre-is.rst:14 +msgid "Firewall" +msgstr "" + +#: ../../../_source/cloud-libre-is.rst:15 +msgid "Open ports 80 and 443." +msgstr "" + +#: ../../../_source/cloud-libre-is.rst:24 +msgid "Apache" +msgstr "" + +#: ../../../_source/cloud-libre-is.rst:25 +msgid "Initial setup of Apache with Certbot." +msgstr "" + +#: ../../../_source/cloud-libre-is.rst:37 +msgid "Nextcloud" +msgstr "" + +#: ../../../_source/cloud-libre-is.rst:38 +msgid "Get Nextcloud source." +msgstr "" + +#: ../../../_source/cloud-libre-is.rst:48 +msgid "Apache More" +msgstr "" + +#: ../../../_source/cloud-libre-is.rst:49 +msgid "Set up Apache for nextcloud." +msgstr ""