From e99e260c13077f6be4a01fc1e7f3ecd82102e425 Mon Sep 17 00:00:00 2001 From: Luca Gambarotto Date: Sun, 25 Feb 2024 15:01:15 +0100 Subject: [PATCH 1/3] Added outline readme --- outline/README.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 outline/README.md diff --git a/outline/README.md b/outline/README.md new file mode 100644 index 0000000..62a5041 --- /dev/null +++ b/outline/README.md @@ -0,0 +1,43 @@ +# Outline + +**Official documentation:** +https://docs.getoutline.com/s/hosting/doc/hosting-outline-nipGaCRBDu + +**Unofficial tutorial:** +https://www.youtube.com/watch?v=IY1jONuTEic + +## Setup +```bash +docker compose up -d +``` + +The application is configured on the port 3000. To access it, a reverse proxy entry should be defined. + +## Folder mapping + +``` +mp0: /mnt/raiddisk/data_outline/database,mp=/mnt/database,replicate=0 +mp1: /mnt/raiddisk/data_outline/data,mp=/mnt/data,replicate=0 +``` + +``` +lxc.idmap: u 0 100000 999 +lxc.idmap: u 999 1004 1 +lxc.idmap: u 1000 101000 1 +lxc.idmap: u 1001 1003 1 +lxc.idmap: u 1002 101002 64534 +lxc.idmap: g 0 100000 999 +lxc.idmap: g 999 1006 1 +lxc.idmap: g 1000 101000 1 +lxc.idmap: g 1001 1005 1 +lxc.idmap: g 1002 101002 64534 +``` + +**Note**: +- *data* folder must be owned by 1001:100000 +- *database* folder must be owned by 999:100000 + +## Slack login configuration +The easiest way to configure the authentication process is to use the API provided by slack. The two secrets provided muse be set in the .env file. + +### Procedure From 3972d1a03f5ddbb07cda10eaa835809c7ba141c6 Mon Sep 17 00:00:00 2001 From: Luca Gambarotto Date: Sun, 25 Feb 2024 15:02:12 +0100 Subject: [PATCH 2/3] Fixed outline readme --- outline/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/outline/README.md b/outline/README.md index 62a5041..8728b7a 100644 --- a/outline/README.md +++ b/outline/README.md @@ -41,3 +41,9 @@ lxc.idmap: g 1002 101002 64534 The easiest way to configure the authentication process is to use the API provided by slack. The two secrets provided muse be set in the .env file. ### Procedure +1. Register a Slack account and create a workspace +2. Visit api.slack.com/apps +3. create a new app from scratch and link to the workspace created at step #1 +4. Open *OAuth & Permission* section +5. Add new redirection URL: */auth/slack.callback* (e.g. *https://outline.giovanesaggio.com/auth/slack.callback*), then save +6. Open *Basic information* section and copy the two secret codes in the .env file. \ No newline at end of file From c5490472b9a22571ac3a291cf6eef0238a046446 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 25 Feb 2024 14:13:23 +0000 Subject: [PATCH 3/3] Updated outline .env file --- outline/.env | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/outline/.env b/outline/.env index 5d228e7..4cf648c 100644 --- a/outline/.env +++ b/outline/.env @@ -1,10 +1,10 @@ -SERVER_IP=10.0.0.31 -POSTGRES_USER='user' -POSTGRES_PASSWORD='pass' +SERVER_IP=10.0.0.70 +POSTGRES_USER='outline_giovanesaggio' +POSTGRES_PASSWORD='wefbecwuhnlsa25732n3c42x' POSTGRES_DB='outline' SECRET_KEY=d1155bc02c5bfd6b2a4c3313113b0b5f0360366aa3b68c56c5299bc4da4efdf8 UTILS_SECRET=14 fec600b3d8b3524421785aef5711805a0a93d21f9ca7f251de88b675862eb URL=https://outline.giovanesaggio.com PORT=3000 SLACK_CLIENT_ID=6694269761893.6697082902291 -SLACK_CLIENT_SECRET=b234dd4387d1edc38b43b06737e95203 \ No newline at end of file +SLACK_CLIENT_SECRET=b234dd4387d1edc38b43b06737e95203