fix(forgejo): disable the SSH server

This commit is contained in:
Dan Anglin 2024-10-15 01:47:50 +01:00
parent a314ab52f8
commit 5876036012
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
3 changed files with 5 additions and 3 deletions

2
config

@ -1 +1 @@
Subproject commit f4812f135bbfc4c5c3c4fa6f4ff4efe072c2627a
Subproject commit 830827da9e0cd82f93e493074fbbad464c3a1ec4

View file

@ -80,6 +80,8 @@ type Forgejo struct {
Oauth2JwtSecret string `json:"oauth2JwtSecret"`
Actions ForgejoActions `json:"actions"`
Backups ForgejoBackups `json:"backups"`
DisableSSH bool `json:"disableSSH"`
StartSSHServer bool `json:"startSSHServer"`
ContainerRunMode string
}

View file

@ -33,8 +33,8 @@ DOMAIN = {{ .Forgejo.Subdomain }}.{{ .RootDomain }}
HTTP_ADDR = {{ .Forgejo.ContainerIpv4Address }}
HTTP_PORT = {{ .Forgejo.HttpPort }}
ROOT_URL = https://{{ .Forgejo.Subdomain }}.{{ .RootDomain }}
DISABLE_SSH = false
START_SSH_SERVER = true
DISABLE_SSH = {{ .Forgejo.DisableSSH }}
START_SSH_SERVER = {{ .Forgejo.StartSSHServer }}
SSH_DOMAIN = {{ .Forgejo.Subdomain }}.{{ .RootDomain }}
SSH_PORT = {{ .Traefik.ExternalSSHPort }}
SSH_LISTEN_HOST = {{ .Forgejo.ContainerIpv4Address }}