Make listen port configurable

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2025-03-10 15:29:29 +08:00
parent 9dcfc90226
commit 94a822e5d1
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -15,6 +15,7 @@ type AppConfigs struct {
}
type Settings struct {
ListenPort string `json:"listen_port"`
SifCdnServer string `json:"sif_cdn_server"`
}
@@ -34,6 +35,7 @@ func DefaultConfigs() *AppConfigs {
return &AppConfigs{
AppName: "honoka-chan",
Settings: Settings{
ListenPort: "80",
SifCdnServer: "http://192.168.1.123/static",
},
UserPrefs: UserPrefs{