directus tmux et caddy 12
This commit is contained in:
parent
66cf88fee4
commit
6da3674985
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue