Use PanelDomain in help texts

This commit is contained in:
Tom Wiesing 2023-11-02 14:44:09 +01:00
parent 6b3460c702
commit 9a3e508ce8
No known key found for this signature in database
4 changed files with 12 additions and 9 deletions

View file

@ -34,8 +34,9 @@ type SSHTemplateContext struct {
Keys []models.Keys
Domain string // domain name of the distillery
Port uint16 // public port of the distillery ssh servers
Domain string // domain name of the distillery
PanelDomain string // domain name of the panel
Port uint16 // public port of the distillery ssh servers
Slug string // slug of the wisski
Hostname string // hostname of an example wisski
@ -62,7 +63,8 @@ func (panel *UserPanel) sshRoute(ctx context.Context) http.Handler {
return sc, err
}
sc.Domain = panel.Config.HTTP.PublicTopDomain()
sc.Domain = panel.Config.HTTP.PrimaryDomain
sc.PanelDomain = panel.Config.HTTP.PanelDomain()
sc.Port = panel.Config.Listen.SSHPort
// pick the first domain that the user has access to as an example