mirror of
https://github.com/lightninglabs/aperture.git
synced 2025-12-18 01:24:19 +01:00
39 lines
1.4 KiB
Go
39 lines
1.4 KiB
Go
package kirin
|
|
|
|
import (
|
|
"github.com/btcsuite/btcutil"
|
|
"github.com/lightninglabs/kirin/auth"
|
|
"github.com/lightninglabs/kirin/proxy"
|
|
)
|
|
|
|
var (
|
|
kirinDataDir = btcutil.AppDataDir("kirin", false)
|
|
defaultConfigFilename = "kirin.yaml"
|
|
defaultTLSKeyFilename = "tls.key"
|
|
defaultTLSCertFilename = "tls.cert"
|
|
defaultLogLevel = "info"
|
|
defaultLogFilename = "kirin.log"
|
|
defaultMaxLogFiles = 3
|
|
defaultMaxLogFileSize = 10
|
|
)
|
|
|
|
type config struct {
|
|
// ListenAddr is the listening address that we should use to allow Kirin
|
|
// to listen for requests.
|
|
ListenAddr string `long:"listenaddr" description:"The interface we should listen on for client requests"`
|
|
|
|
// StaticRoot is the folder where the static content served by the proxy
|
|
// is located.
|
|
StaticRoot string `long:"staticroot" description:"The folder where the static content is located."`
|
|
|
|
Authenticator *auth.Config `long:"authenticator" description:"Configuration for the authenticator."`
|
|
|
|
// Services is a list of JSON objects in string format, which specify
|
|
// each backend service to Kirin.
|
|
Services []*proxy.Service `long:"service" description:"Configurations for each Kirin backend service."`
|
|
|
|
// DebugLevel is a string defining the log level for the service either
|
|
// for all subsystems the same or individual level by subsystem.
|
|
DebugLevel string `long:"debuglevel" description:"Debug level for the Kirin application and its subsystems."`
|
|
}
|