mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +00:00
Fix minor typo errors | Change Nginx for Caddy | Consolidate templates in this repo
This commit is contained in:
16
web/install_caddy.sh
Normal file
16
web/install_caddy.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
function install_caddy() {
|
||||
|
||||
REPO_URL="https://raw.githubusercontent.com/elAgala/server-initializer/master"
|
||||
TEMPLATE_PATH="/templates/caddy"
|
||||
username="$1"
|
||||
caddy_dir="/home/$username/caddy"
|
||||
|
||||
echo "[ WEB ]: Starting Caddy setup"
|
||||
mkdir -p "$caddy_dir"
|
||||
mkdir -p "$caddy_dir/settings"
|
||||
wget "$REPO_URL/$TEMPLATE_PATH/docker-compose.yml" -O "$caddy_dir/docker-compose.yml"
|
||||
wget "$REPO_URL/$TEMPLATE_PATH/Caddyfile" -O "$caddy_dir/settings/Caddyfile"
|
||||
echo "[ WEB ]: Caddy setup succesfully. You can find the Caddyfile under /home/$username/caddy/settings"
|
||||
}
|
||||
Reference in New Issue
Block a user