Project management:

Install OpenProject

-Debian 11

#Install stuff we need
apt install -y apt-transport-https ca-certificates gnupg
#Download repo signing key and add to trusted.gpg.d
wget -O- https://dl.packager.io/srv/opf/openproject/key | gpg --dearmor > /etc/apt/trusted.gpg.d/openproject.gpg
#Download repo list file
wget -O /etc/apt/sources.list.d/openproject.list https://dl.packager.io/srv/opf/openproject/stable/12/installer/debian/11.repo
#Apt update and full upgrade
apt update
apt full-upgrade -y
#Install openproject
apt install openproject -y

Then we run openproject configure:

  1. I did not select BIM mode
  2. Install PostgreSQL and configure
  3. Do NOT install Apache2
  4. Install memcached
  5. Enter your FQDN you are using
  6. Enable SSL (We will do this via Caddy)

Install Caddy Proxy

Before we can use the new Openproject install, we need to setup Caddy. And we need to install this one from a non-default repo as well:

apt install -y debian-keyring debian-archive-keyring
wget -O- 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
wget 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' -O /etc/apt/sources.list.d/caddy-stable.list
apt update
apt install caddy -y

I’m going to set this up for self-signed certificates for this test, but if you are expoesd to the internet and want to use Let’s Encrypt, remove the tls local line and it will do that automatically.

Let’s delete the Caddyfile and start over

#Delete old file
rm /etc/caddy/Caddyfile

#Create new file
cat > /etc/caddy/Caddyfile << EOF
#Server Location
viking.palnet.net {
        #Reverse proxy target
        reverse_proxy localhost:6000
        #TLS Configuration
        tls internal
}
EOF

#Start the service now
systemctl enable --now caddy