just fixes
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 37s

This commit is contained in:
Your Name
2025-09-20 09:18:46 +12:00
parent 9d8088a156
commit 9045ee5def
4 changed files with 14 additions and 2 deletions

View File

@@ -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"

View File

@@ -0,0 +1,5 @@
# API Keys for LogServer Authentication
# Format: hostname:api_key
# Generated by generate-api-key.sh
api_keys:

View File

@@ -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

View File

@@ -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