From 7233386d366613a86e0a5d83db3d2cbacb2ea0e8 Mon Sep 17 00:00:00 2001 From: D Stephenson Date: Tue, 18 Aug 2026 11:24:48 -0500 Subject: [PATCH] Disable telnet in generated configs; mount templates volume - Add "no ip telnet" to generated switch configs for security - Bind-mount templates/ into the container (read-only) so template edits take effect without a rebuild, matching config.py/configs/ Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01CLfUJoQTaUePx1m1d2v2j9 --- docker-compose.yml | 1 + templates/index.html | 1 + 2 files changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 1a2a2e9..fdb08d0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: volumes: - ./config.py:/app/config.py:ro - ./configs:/configs + - ./templates:/app/templates:ro environment: - PYTHONUNBUFFERED=1 - NOCODB_URL=http://nocodb:8080 diff --git a/templates/index.html b/templates/index.html index dde4e62..39fde19 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1045,6 +1045,7 @@ function buildConfig(sw, c) { `sntp server ip-address 10.202.0.16`, `ip http secure-server`, `ip http secure-redirect`, + `no ip telnet`, `aggregation mode smac dmac ip port`, `spanning-tree mst name ${mac} revision 0`, `poe management mode allocation-consumption`,