fix(docker): Update environment variables and improve connection handling for Lavalink

This commit is contained in:
2025-04-24 00:05:57 +08:00
parent 0b86b5d891
commit 537a8c6709
4 changed files with 50 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
server:
port: 2333
address: 0.0.0.0
password: ${LAVALINK_PASSWORD:changeme} # Uses env var or defaults to 'changeme'
password: ${LAVALINK_SERVER_PASSWORD:testing-lavalink-dont-touch} # Changed to use LAVALINK_SERVER_PASSWORD env var
logging:
level:
@@ -22,4 +22,10 @@ lavalink:
bufferDurationMs: 400
frameBufferDurationMs: 5000
gc-warnings: true
plugins: []
plugins: []
# Add specific IPs allowed to connect (your bot container)
# Set as 0.0.0.0/0 to allow connections from anywhere (not recommended for production)
# This is important for Docker environments
server.ip-rotation: false
server.ip-blocks: ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "127.0.0.1", "0.0.0.0/0"]