mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
UX: Refactor config options to be more intuitive
Make sure to update your local config files when upgrading as the name of some config values has changed. The default config path has changed from "settings" to "config".
This commit is contained in:
@@ -51,14 +51,14 @@ func startAction(ctx *cli.Context) error {
|
||||
fmt.Printf("NAME VALUE\n")
|
||||
fmt.Printf("detach-server %t\n", conf.DetachServer())
|
||||
|
||||
fmt.Printf("http-host %s\n", conf.HttpServerHost())
|
||||
fmt.Printf("http-port %d\n", conf.HttpServerPort())
|
||||
fmt.Printf("http-mode %s\n", conf.HttpServerMode())
|
||||
fmt.Printf("http-host %s\n", conf.HttpHost())
|
||||
fmt.Printf("http-port %d\n", conf.HttpPort())
|
||||
fmt.Printf("http-mode %s\n", conf.HttpMode())
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
if conf.HttpServerPort() < 1 || conf.HttpServerPort() > 65535 {
|
||||
if conf.HttpPort() < 1 || conf.HttpPort() > 65535 {
|
||||
log.Fatal("server port must be a number between 1 and 65535")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user