Files
fnx_web/init/conf/config.go

21 lines
727 B
Go
Raw Normal View History

package conf
type PixelWebConfig struct {
APIURLExternal string `toml:"api_url_external"`
APIURLInternal string `toml:"api_url_internal"`
StaticResourceDir string `toml:"static_resource_dir"`
TemplateDir string `toml:"template_dir"`
DebugMode bool `toml:"debug_mode"`
2019-05-30 09:29:50 +02:00
MaintenanceMode bool `toml:"maintenance_mode"`
}
const DefaultConfig = `# Pixeldrain Web UI server configuration
2019-06-04 20:14:25 +02:00
api_url_external = "/api" # Used in the web browser
api_url_internal = "http://127.0.0.1:8080" # Used for internal API requests to the pixeldrain server, not visible to users
static_resource_dir = "res/static"
2019-05-30 09:29:50 +02:00
template_dir = "res/template"
debug_mode = false
maintenance_mode = false
`