just fixes
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 37s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 37s
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# Service identification
|
||||
CONTAINER_NAME=logclient-filebeat
|
||||
|
||||
# Server settings (REQUIRED by dropshell)
|
||||
SSH_USER="root"
|
||||
|
||||
# Docker image tag override (optional)
|
||||
IMAGE_TAG="7.17.23"
|
||||
|
||||
|
5
logserver/config/api-keys.yml
Normal file
5
logserver/config/api-keys.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
# API Keys for LogServer Authentication
|
||||
# Format: hostname:api_key
|
||||
# Generated by generate-api-key.sh
|
||||
|
||||
api_keys:
|
@@ -1,6 +1,9 @@
|
||||
# Service identification
|
||||
CONTAINER_NAME=logserver
|
||||
|
||||
# Server settings (REQUIRED by dropshell)
|
||||
SSH_USER="root"
|
||||
|
||||
# Elasticsearch settings
|
||||
ES_VERSION=7.17.23
|
||||
ES_HEAP_SIZE=2g
|
||||
|
@@ -60,9 +60,10 @@ while true; do
|
||||
break
|
||||
fi
|
||||
|
||||
# Validate hostname
|
||||
if [[ ! "$hostname" =~ ^[a-zA-Z0-9][a-zA-Z0-9-_.]*$ ]]; then
|
||||
# Validate hostname - allow simple names, must start with alphanumeric
|
||||
if [[ ! "$hostname" =~ ^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$ ]]; then
|
||||
echo -e "${RED}Invalid hostname format. Use only letters, numbers, dots, dashes, and underscores.${NC}"
|
||||
echo -e "${RED}Hostname must start and end with a letter or number.${NC}"
|
||||
continue
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user