feat: update domain config

This commit is contained in:
hanif salafi 2024-09-11 10:36:15 +07:00
parent bfbea4a661
commit 87acf93075
4 changed files with 5 additions and 3 deletions

View File

@ -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().

View File

@ -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()

View File

@ -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"`

View File

@ -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