fix: take directory of executable path in config
This commit is contained in:
parent
6286d01178
commit
96ffc31849
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ func Load() (*Config, error) {
|
|||
Platform: &Platform{
|
||||
SitesDirectory: cl.Get("platform.sitesDirectory").Required().AsString(),
|
||||
MaxUploadSizeMegabytes: cl.Get("platform.maxUploadSizeMegabytes").WithDefault(512).AsInt(),
|
||||
CaddyExecutablePath: cl.Get("platform.caddyExecutablePath").WithDefault(path.Join(exePath, "caddy")).AsString(),
|
||||
CaddyExecutablePath: cl.Get("platform.caddyExecutablePath").WithDefault(path.Join(path.Dir(exePath), "caddy")).AsString(),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue