directus tmux et caddy 12

This commit is contained in:
Valentin 2024-02-24 14:38:38 +01:00
parent 66cf88fee4
commit 6da3674985
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,7 @@ if [[ "$answer" == "y" ]]; then
npm init -y &&\
npx directus bootstrap" $username
chown -R caddy:caddy "/home/${username}/${cms_folder}"
# chown -R caddy:caddy "/home/${username}/${cms_folder}"
session="directus"
su -c "tmux new-session -d -s ${session} &&\
@ -271,6 +271,7 @@ if [[ "$answer" == "y" ]]; then
caddyfile="/etc/caddy/Caddyfile"
echo "cms.${domain_name} {" >> $caddyfile
echo "reverse_proxy ${ip}:${port}" >> $caddyfile
echo "log file /home/val/caddy.log" >> $caddyfile
echo "}" >> $caddyfile
caddy fmt $caddyfile -w
caddy reload -c $caddyfile