feat: update domain config
This commit is contained in:
parent
bfbea4a661
commit
87acf93075
|
|
@ -162,7 +162,7 @@ func (_i *ppidDataCategoriesService) SaveThumbnail(c *fiber.Ctx) (err error) {
|
|||
return err
|
||||
}
|
||||
|
||||
host := _i.Cfg.App.Host
|
||||
host := _i.Cfg.App.Domain
|
||||
port := _i.Cfg.App.ExternalPort
|
||||
|
||||
_i.Log.Info().Str("timestamp", time.Now().
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ func (_i *ppidDataFilesService) Save(c *fiber.Ctx) (err error) {
|
|||
return err
|
||||
}
|
||||
|
||||
host := _i.Cfg.App.Host
|
||||
host := _i.Cfg.App.Domain
|
||||
port := _i.Cfg.App.ExternalPort
|
||||
|
||||
form, err := c.MultipartForm()
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import (
|
|||
type app = struct {
|
||||
Name string `toml:"name"`
|
||||
Host string `toml:"host"`
|
||||
Domain string `toml:"domain"`
|
||||
Port string `toml:"port"`
|
||||
ExternalPort string `toml:"external-port"`
|
||||
PrintRoutes bool `toml:"print-routes"`
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
# Configuration vars for cmd/app
|
||||
[app]
|
||||
name = "Fiber starter"
|
||||
host = "http://localhost"
|
||||
host = "http://103.82.242.92"
|
||||
port = ":8800"
|
||||
domain = "https://103.82.242.92"
|
||||
external-port = ":8888"
|
||||
idle-timeout = 5 # As seconds
|
||||
print-routes = false
|
||||
|
|
|
|||
Loading…
Reference in New Issue