config

package
v0.0.0-...-722708c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server struct {
		Port string `yaml:"port" envconfig:"SERVER_PORT"`
		Host string `yaml:"host" envconfig:"SERVER_HOST"`
	} `yaml:"server"`
	Instance struct {
		Name      string `yaml:"name" envconfig:"INSTANCE_NAME"`
		Theme     string `yaml:"theme" envconfig:"INSTANCE_THEME"`
		Frontends []struct {
			Name        string `yaml:"name"`
			Regex       string `yaml:"regex"`
			Alternative string `yaml:"alternative"`
		} `yaml:"frontends"`
		Js struct {
			Enabled bool `yaml:"enabled" envconfig:"INSTANCE_JS_ENABLED"`
		}
	} `yaml:"instance"`
	Cache struct {
		Enabled  bool `yaml:"enabled" envconfig:"CACHE_ENABLED"`
		Duration int  `yaml:"duration" envconfig:"CACHE_DURATION"`
	} `yaml:"cache"`
	Log struct {
		Level string `yaml:"level" envconfig:"LOG_LEVEL"`
	} `yaml:"log"`
}
var Cfg Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL