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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CLfUJoQTaUePx1m1d2v2j9
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user