this repo has no description

fix: run sshd on 0.0.0.0:22 for Fly.io proxy compatibility

+6 -4
+2 -1
fly.toml
··· 19 19 20 20 [[services]] 21 21 protocol = 'tcp' 22 - internal_port = 2222 22 + internal_port = 22 23 23 24 24 [[services.ports]] 25 25 port = 2222 26 + handlers = [] 26 27 27 28 [[vm]] 28 29 memory = '512mb'
+4 -3
start.sh
··· 15 15 # ensure git user owns home directory 16 16 chown -R git:git /home/git 17 17 18 - # configure sshd for knot 18 + # configure sshd to listen on 0.0.0.0:22 for Fly.io proxy 19 19 cat > /etc/ssh/sshd_config << 'EOF' 20 - Port 2222 20 + Port 22 21 + ListenAddress 0.0.0.0 21 22 HostKey /etc/ssh/keys/ssh_host_ed25519_key 22 23 HostKey /etc/ssh/keys/ssh_host_rsa_key 23 24 HostKey /etc/ssh/keys/ssh_host_ecdsa_key ··· 30 31 AuthorizedKeysCommandUser nobody 31 32 EOF 32 33 33 - # start sshd (port configured in sshd_config) 34 + # start sshd on 0.0.0.0:22 (Fly proxy requires this) 34 35 /usr/sbin/sshd -D -e & 35 36 36 37 # run knotserver as git user (foreground)