From 31f21d046b3016fa022b0b7cb229daf214786846 Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Sat, 7 Dec 2024 20:57:53 +0000 Subject: [PATCH] Update Setting up a fresh install of Canopy over Debian 12 Bookworm --- install-debian.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/install-debian.md b/install-debian.md index f454096..7c973b3 100644 --- a/install-debian.md +++ b/install-debian.md @@ -1,6 +1,22 @@ --- title: Setting up a fresh install of Canopy over Debian 12 Bookworm --- -#Installing Canopy on Debian 12 Bookworm: -## \ No newline at end of file +## Step-by-step procedure for Setting up a fresh install of Canopy over Debian 12 Bookworm: + +## Installation +1. Install pre-reqs `sudo apt install nodejs npm` +2. Yoink a copy of canopy `git clone https://gitlab.com/rainbownapkin/canopy.git && cd canopy' +3. Install dependencies from NPM `npm install` +4. Copy a new config file off of the included reference `cp config.example.json config.json` +5. Fill out the newly copied config with a text editor, don't forget to set your DB password or make up a sessionSecret! + +## Revers-Proxy Setup +###This will be documented once we start public testing, for now development boxes don't need this. + +## Admin Account Setup +1. Navigate to your servers ip/domain name in your web-browser. (including port if it's set to non-standard w/o a reverse-proxy in-front of it.) +2. Create a new user account (don't log in yet, if you do log-out so you won't have a stale session hanging around.) +3. Drop into a `mongosh` under the canopy user `mongosh --authenticationDatabase "canopy" -u "canopy"` +4. Switch over to the canopy database `use canopy` +5. Update the user document 'rank' property to 'admin': `db.users.updateOne({user:'test'},{$set: {rank:'admin'}})` \ No newline at end of file