diff --git a/bin/install_nuxt_front.sh b/bin/install_nuxt_front.sh index 9796523..5053cc1 100644 --- a/bin/install_nuxt_front.sh +++ b/bin/install_nuxt_front.sh @@ -21,7 +21,6 @@ echo "telemetry.enabled=false" >> /var/www/.nuxtrc chown -R www-data:www-data /var/www/.nuxtrc mkdir /var/www/html -rm /var/www/html/* chown www-data:www-data /var/www/html su -s /bin/bash -c "cd ${REPO_DIRECTORY} &&\ diff --git a/bin/setup_webhook.sh b/bin/setup_webhook.sh index 61b555c..076f232 100644 --- a/bin/setup_webhook.sh +++ b/bin/setup_webhook.sh @@ -2,7 +2,7 @@ echo -e "${PURPLE}${BOLD}If it does not already exists, create a webhook at the following url${RESET}" echo -e "${PURPLE}${BOLD}${repo_url}/settings/hooks/gitea/new${RESET}" -echo -e "${BLUE}${BOLD}Target URL ${RESET}${BLUE}https://${domain_name}/webhook.php${RESET}" +echo -e "${BLUE}${BOLD}Target URL ${RESET}${BLUE}https://${DOMAIN_NAME}/webhook.php${RESET}" echo -e "${BLUE}${BOLD}Branch filter ${RESET}${BLUE}prod${RESET}" echo -e "${BLUE}${BOLD}Authorization Header ${RESET}${ORANGE}Generate a safe string using \`openssl rand -base64 32\`${RESET}" echo -e "${PURPLE}${BOLD}Enter the Authorization Header${RESET}" @@ -32,7 +32,8 @@ echo "php_fastcgi unix//run/php/php8.2-fpm.sock" >> $CADDYFILE echo "file_server" >> $CADDYFILE echo "}" >> $CADDYFILE echo "handle {" >> $CADDYFILE -echo "reverse_proxy ${ip}:3000" >> $CADDYFILE +echo "root * /var/www/html/public" >> $CADDYFILE +echo "file_server" >> $CADDYFILE echo "}" >> $CADDYFILE echo "}" >> $CADDYFILE caddy fmt $CADDYFILE -w