Update Setting up a fresh install of Canopy over Debian 12 Bookworm
parent
907e07b894
commit
4a4c2a9156
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue