Update config defs

This commit is contained in:
Eric Gullickson
2025-12-18 13:40:57 -06:00
parent 33e5797ae0
commit 7a2e11953a
3 changed files with 5 additions and 6 deletions

View File

@@ -41,13 +41,13 @@ const configSchema = z.object({
audience: z.string(), audience: z.string(),
}), }),
// External APIs configuration // External APIs configuration (optional)
external: z.object({ external: z.object({
vpic: z.object({ vpic: z.object({
url: z.string(), url: z.string(),
timeout: z.string(), timeout: z.string(),
}), }).optional(),
}), }).optional(),
// Service configuration // Service configuration
service: z.object({ service: z.object({

View File

@@ -29,7 +29,6 @@ auth0:
audience: https://api.motovaultpro.com audience: https://api.motovaultpro.com
# client_id and client_secret loaded from secrets # client_id and client_secret loaded from secrets
# External APIs Configuration
# google_maps_api_key loaded from secrets/app/google-maps-api-key.txt # google_maps_api_key loaded from secrets/app/google-maps-api-key.txt
# Service Authentication # Service Authentication

View File

@@ -57,9 +57,9 @@ inject_secret() {
rm -rf "$target_path" rm -rf "$target_path"
fi fi
# Copy the secret file # Copy the secret file (644 so container users can read)
cp "$source_path" "$target_path" cp "$source_path" "$target_path"
chmod 600 "$target_path" chmod 644 "$target_path"
echo " OK: $file_name" echo " OK: $file_name"
} }