use incoming ports variable instead of hard coding value

This commit is contained in:
egarette@silique.fr 2023-02-15 17:55:44 +01:00
parent 8ad544de8b
commit 0305290883
2 changed files with 3 additions and 3 deletions

View file

@ -188,13 +188,13 @@ SSH_DOMAIN = %%revprox_client_external_domainnames[0]
;; Port number to be exposed in clone URL ;; Port number to be exposed in clone URL
;SSH_PORT = 22 ;SSH_PORT = 22
;>GNUNUX ;>GNUNUX
SSH_PORT = 2222 SSH_PORT = %%incoming_ports
;<GNUNUX ;<GNUNUX
;; ;;
;; The port number the builtin SSH server should listen on ;; The port number the builtin SSH server should listen on
;SSH_LISTEN_PORT = %(SSH_PORT)s ;SSH_LISTEN_PORT = %(SSH_PORT)s
;>GNUNUX ;>GNUNUX
SSH_LISTEN_PORT = 2222 SSH_LISTEN_PORT = %%incoming_ports
;<GNUNUX ;<GNUNUX
;; ;;
;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. ;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.

View file

@ -8,4 +8,4 @@ auth_server: %%oauth2_server_domainname
username: %%username username: %%username
password: %%get_password(server_name='test', username=%%username, description='test', type="cleartext", hide=%%hide_secret, temporary=True) password: %%get_password(server_name='test', username=%%username, description='test', type="cleartext", hide=%%hide_secret, temporary=True)
forgejo_title: "%%forgejo_title" forgejo_title: "%%forgejo_title"
git_url: "[%%domain]:2222" git_url: "[%%domain]:%%incoming_ports"