5c88a81e5d | ||
---|---|---|
assets | ||
utils | ||
README.md | ||
install.sh |
README.md
Deployment DCDN
Deployment Debian (os) + Caddy (webserver) + Directus (cms) + Nuxt (static front).
Installation
On a fresh install as root user using
sudo passwd root
su - root
- Upgrade
apt update && apt upgrade -y
- Install git
apt install -y git
- Download and make the instal script executable
git clone https://figureslibres.io/gitea/valentin_le_moign/deployment-dcdn.git
cd deployment-dcdn
chmod u+x install.sh
- Launch the script
bash install.sh
Installation steps
- Install php for the webhook
- Create a user
- Setup ssh, firewall and fail2ban
- Install Caddy webserver
- Install MariaDB
- Setup the Directus Database
- Install Node
- Prompt for the url
- Install and run Directus
- Install and run the front-end
- Setup a webhook
Post-install
- Configure DNS Zone
Domain : <domain_name> | Type : A | Target : <ip>
Domain : cms.<domain_name> | Type : A | Target : <ip>
Domain : www.<domain_name> | Type : A | Target : <ip>
- Set Directus roles
Website role Read content collections and directus_files
User role All permissions on content collections, directus_files and directus_folders
- Create a webhook
<repo_url>/settings/hooks/gitea/new
Target URL https://<domain_name>/webhook.php
Branch filter prod
Authorization Header generate a safe string using : openssl rand -base64 32