···11+KNOT_SERVER_HOSTNAME=<host name of the knot server>
22+KNOT_SERVER_SECRET=<secret for the knot server from tangled.sh ui>
33+44+KNOT_SERVER_SSH_PORT=2222
···11# knot-docker
22+33+## quickstart
44+55+- register a knot on [tangled.sh/knots](https://tangled.sh/knot)
66+- copy `.env.example` to `.env`
77+- fill the host name and secret in the `.env` file
88+- run `docker-compose up -d`
99+1010+## ssh client setup
1111+1212+the ssh daemon runs on port 2222. you can configure your ssh client to use port
1313+2222 to push code to the server by adding the following to your ssh config:
1414+1515+```
1616+Host knot.example.com
1717+ User git
1818+ Port 2222
1919+```
···11+Port 22
22+ListenAddress 0.0.0.0
33+44+LogLevel INFO
55+66+HostKey /etc/ssh/keys/ssh_host_ed25519_key
77+88+PasswordAuthentication no
99+KbdInteractiveAuthentication no
1010+PubkeyAuthentication yes
1111+1212+PermitRootLogin no
1313+AllowTcpForwarding no
1414+GatewayPorts no
1515+X11Forwarding no
1616+PermitTTY no
1717+PermitUserEnvironment no
1818+UseDNS no
1919+MaxAuthTries 3
2020+LoginGraceTime 30s
2121+Subsystem sftp internal-sftp
2222+2323+Match User git
2424+ AuthorizedKeysCommand /usr/bin/keyfetch -repoguard-path /usr/bin/repoguard
2525+ AuthorizedKeysCommandUser nobody