Files
fnx_web/init/conf/config.go

21 lines
749 B
Go
Raw Normal View History

package conf
type PixelWebConfig struct {
2019-07-06 18:41:16 +02:00
APIURLExternal string `toml:"api_url_external"`
APIURLInternal string `toml:"api_url_internal"`
SessionCookieDomain string `toml:"session_cookie_domain"`
2019-12-23 23:56:57 +01:00
ResourceDir string `toml:"resource_dir"`
2019-07-06 18:41:16 +02:00
DebugMode bool `toml:"debug_mode"`
MaintenanceMode bool `toml:"maintenance_mode"`
}
const DefaultConfig = `# Pixeldrain Web UI server configuration
2019-07-06 18:41:16 +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
session_cookie_domain = ".pixeldrain.com"
2019-12-23 23:56:57 +01:00
resource_dir = "res"
2019-07-06 18:41:16 +02:00
debug_mode = false
maintenance_mode = false
2019-05-30 09:29:50 +02:00
`