Update config defs
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user