mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 00:28:17 +00:00
This commit is contained in:
parent
f1fdd782d5
commit
0a96e59884
|
@ -26,6 +26,7 @@ fi
|
||||||
|
|
||||||
if [ -d /etc/ssh ]; then
|
if [ -d /etc/ssh ]; then
|
||||||
SSH_PORT=${SSH_PORT:-"22"} \
|
SSH_PORT=${SSH_PORT:-"22"} \
|
||||||
|
SSH_LISTEN_PORT=${SSH_LISTEN_PORT:-"${SSH_PORT}"} \
|
||||||
envsubst < /etc/templates/sshd_config > /etc/ssh/sshd_config
|
envsubst < /etc/templates/sshd_config > /etc/ssh/sshd_config
|
||||||
|
|
||||||
chmod 0644 /etc/ssh/sshd_config
|
chmod 0644 /etc/ssh/sshd_config
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Port ${SSH_PORT}
|
Port ${SSH_LISTEN_PORT}
|
||||||
Protocol 2
|
Protocol 2
|
||||||
|
|
||||||
AddressFamily any
|
AddressFamily any
|
||||||
|
|
Loading…
Reference in a new issue