diff --git a/install-debian.md b/install-debian.md index 0597b39..acd68e0 100644 --- a/install-debian.md +++ b/install-debian.md @@ -12,6 +12,7 @@ title: Setting up a fresh install of Canopy over Debian 12 Bookworm + ## Step-by-step procedure for Setting up a fresh install of Canopy over Debian 12 Bookworm: Before installing make sure you have already prepped your [database](mongodb-debian). ## Installation @@ -21,6 +22,23 @@ Before installing make sure you have already prepped your [database](mongodb-deb 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! +## Canopy as a System Service Setup +1. Create a user named 'canopy' and move the production canopy folder to it's home dir +2. Create a new file at `/etc/systemd/system/canopy.service`, and add: +`[Unit] +Description=canopy +After=network.target + +[Service] +User=canopy +WorkingDirectory=/home/canopy/canopy/ +ExecStart=node /home/canopy/canopy/src/server.js +Restart=always + +[Install] +WantedBy=multi-user.target +` + ## Reverse-Proxy Setup ###This will be documented once we start public testing, for now development boxes don't need this.