summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorthrowaway <developerthrowaway@protonmail.com>2024-02-17 15:10:52 -0800
committerthrowaway <developerthrowaway@protonmail.com>2024-02-17 15:21:42 -0800
commit2e4a14cf167a909f087032d39745e1fd118b078a (patch)
tree1289260aea900576c13db710e8e0bef4ce4e5315 /docker
parentd20f0fcf8860242f785bdb1de32c958887cdc349 (diff)
fix instances passed through env
Diffstat (limited to 'docker')
-rw-r--r--docker/gen_config.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/docker/gen_config.php b/docker/gen_config.php
index b1cb1e6..dff39cb 100644
--- a/docker/gen_config.php
+++ b/docker/gen_config.php
@@ -52,7 +52,7 @@ function detect_captcha_dirs() {
}
-$special_keys = ["CAPTCHA_DATASET"];
+$special_keys = ["CAPTCHA_DATASET", "INSTANCES"];
$output = "<?php\n // This file was generated by docker/gen_config.php\n";
@@ -64,8 +64,11 @@ continue;
}
-if($key === "CAPTCHA_DATASET") {
- $output = $output . "\tconst " . $key . " = " . type_to_string(detect_captcha_dirs()) . ";\n";
+ if($key === "CAPTCHA_DATASET") {
+ $output = $output . "\tconst " . $key . " = " . type_to_string(detect_captcha_dirs()) . ";\n";
+ }
+ if($key === "INSTANCES") {
+ $output = $output . "\tconst " . $key . " = " . type_to_string(explode(',', $val)) . ";\n";
}
}