allow usage without domain.

This commit is contained in:
Miroslav Šedivý
2021-07-29 21:55:47 +02:00
parent 2f2e28074b
commit 408556f08d
4 changed files with 33 additions and 7 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ func (Room) Init(cmd *cobra.Command) error {
// Traefik
cmd.PersistentFlags().String("traefik.domain", "neko.lan", "traefik: domain on which will be container hosted")
cmd.PersistentFlags().String("traefik.domain", "", "traefik: domain on which will be container hosted (if empty or '*', match all; for neko-rooms as subdomain use '*.domain.tld')")
if err := viper.BindPFlag("traefik.domain", cmd.PersistentFlags().Lookup("traefik.domain")); err != nil {
return err
}