Spaces:
Paused
Paused
fix caddy path
Browse files- start_with_sync.sh +14 -2
start_with_sync.sh
CHANGED
|
@@ -30,7 +30,19 @@ curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL="/tmp/bin
|
|
| 30 |
export PATH="/tmp/bin:$PATH"
|
| 31 |
|
| 32 |
# set nvm cache directory
|
| 33 |
-
export NPM_CONFIG_CACHE=/tmp/.npm_cache
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
# Ensure the custom cache directory exists for npm (though /tmp generally is fine)
|
|
@@ -181,7 +193,7 @@ MYSQL_PORT=${MYSQL_PORT}
|
|
| 181 |
MYSQL_USER=${MYSQL_USER}
|
| 182 |
MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
| 183 |
MYSQL_DATABASE=${MYSQL_DATABASE}
|
| 184 |
-
API_KEYS=
|
| 185 |
ALLOWED_TOKENS=["${REQUIRED_API_KEY}"]
|
| 186 |
AUTH_TOKEN=${REQUIRED_API_KEY}
|
| 187 |
# For Vertex AI Platform API Keys
|
|
|
|
| 30 |
export PATH="/tmp/bin:$PATH"
|
| 31 |
|
| 32 |
# set nvm cache directory
|
| 33 |
+
export NPM_CONFIG_CACHE=/tmp/.npm_cache
|
| 34 |
+
export XDG_CONFIG_HOME=/tmp/.config
|
| 35 |
+
# <--- ADD THIS LINE for Caddy's config
|
| 36 |
+
export XDG_DATA_HOME=/tmp/.local/share
|
| 37 |
+
# <--- ADD THIS LINE for Caddy's data/locks (equivalent to ~/.local/share)
|
| 38 |
+
|
| 39 |
+
# Ensure the custom config and data directories exist and are writable
|
| 40 |
+
# These will be created by 'appuser' if `USER appuser` is active, or by root if before.
|
| 41 |
+
# Since they are in /tmp, 'appuser' will have write permissions regardless if created by root.
|
| 42 |
+
mkdir -p ${XDG_CONFIG_HOME}/caddy \
|
| 43 |
+
${XDG_DATA_HOME}/caddy/locks
|
| 44 |
+
|
| 45 |
+
|
| 46 |
|
| 47 |
|
| 48 |
# Ensure the custom cache directory exists for npm (though /tmp generally is fine)
|
|
|
|
| 193 |
MYSQL_USER=${MYSQL_USER}
|
| 194 |
MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
| 195 |
MYSQL_DATABASE=${MYSQL_DATABASE}
|
| 196 |
+
API_KEYS=${GEMINI_API_KEYS}
|
| 197 |
ALLOWED_TOKENS=["${REQUIRED_API_KEY}"]
|
| 198 |
AUTH_TOKEN=${REQUIRED_API_KEY}
|
| 199 |
# For Vertex AI Platform API Keys
|