mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-30 17:37:57 +08:00
fix details around logging of new domain-validator
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
391d838416
commit
1b1626fe56
2 changed files with 3 additions and 2 deletions
|
@ -57,8 +57,8 @@ command=/session-deduplicator.sh
|
||||||
user=root
|
user=root
|
||||||
|
|
||||||
[program:domain-validator]
|
[program:domain-validator]
|
||||||
stdout_logfile=/dev/stdout
|
# stdout_logfile=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
# stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
command=php -S 127.0.0.1:9876 /var/www/docker-aio/php/domain-validator.php
|
command=php -S 127.0.0.1:9876 /var/www/docker-aio/php/domain-validator.php
|
||||||
|
|
|
@ -13,5 +13,6 @@ if (strpos($domain, '.') === false) {
|
||||||
} elseif (filter_var($domain, FILTER_VALIDATE_IP)) {
|
} elseif (filter_var($domain, FILTER_VALIDATE_IP)) {
|
||||||
http_response_code(400);
|
http_response_code(400);
|
||||||
} else {
|
} else {
|
||||||
|
error_log($domain . ' was accepted as valid domain.');
|
||||||
http_response_code(200);
|
http_response_code(200);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue