Skip to content

A self-hosted media server and file management system

chore: remove caddy from start scripts

aminnausin5f81387f9f4a
diff --git a/startDocker.bat b/startDocker.bat
index e26b7d52..b0507527 100644
--- a/startDocker.bat
+++ b/startDocker.bat
@@ -58,22 +58,7 @@ if not exist "docker\etc\nginx\conf.d\default.conf" (
echo 'nginx' configuration file.
)
echo.
-
-:: Check for Caddyfile
-if not exist "docker\etc\caddy\Caddyfile" (
- call :ColorText "[ERROR]" Red
- echo Missing 'docker/etc/caddy/Caddyfile' file.
- echo Please ensure this file is present in the correct directory.
- pause
- goto :end
-) else (
- call :ColorText "[FOUND]" Green
- echo 'Caddyfile' configuration file.
- echo.
- echo NOTE: Make sure to replace 'app.test' with your website URL in:
- echo - '/docker/etc/caddy/Caddyfile' or wherever your reverse proxy is
-)
-echo.
+rem --------------------------------------------------
:: Check for .env.docker
if not exist "docker\.env.docker" (
@@ -127,26 +112,6 @@ if not exist "data\media" (
)
echo.
-:: Ensure app directories exists
-if not exist "app" (
- call :ColorText "[INFO]" Blue
- echo Missing 'app' directory. Creating it...
- echo.
- mkdir "app"
- if errorlevel 1 (
- call :ColorText "[ERROR]" Red
- echo Failed to create 'app' directory.
- pause
- goto :end
- )
- call :ColorText "[SUCCESS]" Green
- echo 'app' directory created.
-) else (
- call :ColorText "[FOUND]" Green
- echo 'app' directory.
-)
-echo.
-
:: Ensure logs directory exists
if not exist "logs" (
call :ColorText "[INFO]" Blue
@@ -155,7 +120,6 @@ if not exist "logs" (
mkdir "logs"
mkdir "logs\mediaServer"
mkdir "logs\nginx"
- mkdir "logs\caddy"
if errorlevel 1 (
call :ColorText "[ERROR]" Red
echo Failed to create 'logs' directory.
@@ -169,28 +133,7 @@ if not exist "logs" (
echo 'logs' directory.
)
echo.
-
-:: Ensure caddy directory exists
-if not exist "caddy" (
- call :ColorText "[INFO]" Blue
- echo Missing 'caddy' directory. Creating it...
- echo.
- mkdir "caddy"
- mkdir "caddy\data"
- mkdir "caddy\config"
- if errorlevel 1 (
- call :ColorText "[ERROR]" Red
- echo Failed to create 'caddy' directory.
- pause
- goto :end
- )
- call :ColorText "[SUCCESS]" Green
- echo 'caddy' directory created.
-) else (
- call :ColorText "[FOUND]" Green
- echo 'caddy' directory.
-)
-echo.
+rem --------------------------------------------------
call :ColorText "[STEP 2/6] " Yellow
echo Setting up user config...
diff --git a/startDocker.sh b/startDocker.sh
index d94f5003..fda10f2e 100644
--- a/startDocker.sh
+++ b/startDocker.sh
@@ -60,16 +60,16 @@ fi
echo
# Check for Caddyfile
-if [[ ! -f "docker/etc/caddy/Caddyfile" ]]; then
- echo -e "${RED}[ERROR]${RESET} Missing 'docker/etc/caddy/Caddyfile' file."
- echo "Please ensure this file is present in the correct directory."
- exit 1
-else
- echo -e "${GREEN}[FOUND]${RESET} 'Caddyfile' configuration file."
- echo "NOTE: Make sure to replace 'app.test' with your website URL in:"
- echo " - '/docker/etc/caddy/Caddyfile' or wherever your reverse proxy is"
-fi
-echo
+# if [[ ! -f "docker/etc/caddy/Caddyfile" ]]; then
+# echo -e "${RED}[ERROR]${RESET} Missing 'docker/etc/caddy/Caddyfile' file."
+# echo "Please ensure this file is present in the correct directory."
+# exit 1
+# else
+# echo -e "${GREEN}[FOUND]${RESET} 'Caddyfile' configuration file."
+# echo "NOTE: Make sure to replace 'app.test' with your website URL in:"
+# echo " - '/docker/etc/caddy/Caddyfile' or wherever your reverse proxy is"
+# fi
+# echo
# Check for .env.docker
if [[ ! -f "docker/.env.docker" ]]; then
@@ -117,7 +117,7 @@ if [[ ! -d "logs" ]]; then
echo
mkdir -p "logs/mediaServer"
mkdir -p "logs/nginx"
- mkdir -p "logs/caddy"
+ # mkdir -p "logs/caddy"
sudo chown -R ${PUID}:${PGID} ./logs/nginx
sudo chown -R ${PUID}:${PGID} ./logs/mediaServer
sudo chmod -R 775 logs
@@ -132,21 +132,21 @@ fi
echo
# Ensure caddy directory exists
-if [[ ! -d "caddy/data" ]]; then
- echo -e "${BLUE}[INFO]${RESET} Missing 'caddy' directory. Creating it..."
- echo
- mkdir -p "caddy/data"
- mkdir -p "caddy/config"
- sudo chown -R 1000:1000 ./caddy
- if [[ $? -ne 0 ]]; then
- echo -e "${RED}[ERROR]${RESET} Failed to create 'caddy' directory."
- exit 1
- fi
- echo -e "${GREEN}[SUCCESS]${RESET} 'caddy' directory created."
-else
- echo -e "${GREEN}[FOUND]${RESET} 'caddy' directory."
-fi
-echo
+# if [[ ! -d "caddy/data" ]]; then
+# echo -e "${BLUE}[INFO]${RESET} Missing 'caddy' directory. Creating it..."
+# echo
+# mkdir -p "caddy/data"
+# mkdir -p "caddy/config"
+# sudo chown -R 1000:1000 ./caddy
+# if [[ $? -ne 0 ]]; then
+# echo -e "${RED}[ERROR]${RESET} Failed to create 'caddy' directory."
+# exit 1
+# fi
+# echo -e "${GREEN}[SUCCESS]${RESET} 'caddy' directory created."
+# else
+# echo -e "${GREEN}[FOUND]${RESET} 'caddy' directory."
+# fi
+# echo
echo -e "${YELLOW}[STEP 2/6]${RESET} Setting up user config..."
echo