conf

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Options = []util.Option{

	{
		Default: false,
		Usage:   "suppress all output",
		Flag:    "quiet",
		Short:   "q",
	},
	{
		Default: false,
		Usage:   "display version and exit",
		Flag:    "version",
		Short:   "V",
	},
	{
		Default: "",
		Usage:   "path to configuration file",
		Flag:    "conf",
	},

	{
		Name:    "verbose",
		Default: 1,
		Usage:   "set verbosity level (0: silent, 1: warnings and errors, 2: verbose, 3: debug)",
		Flag:    "verbose",
		Short:   "v",
		Env:     "PANTO_VERBOSE",
	},

	{
		Name:    "log.file",
		Default: "",
		Usage:   "path of a file to log Panto output",
		Flag:    "log-file",
		Env:     "PANTO_LOG_FILE",
	},
	{
		Name:    "log.syslog",
		Default: false,
		Usage:   "log Panto output to syslog",
		Env:     "PANTO_LOG_SYSLOG",
	},

	{
		Name:    "server.grpc-address",
		Default: ":7575",
		Usage:   "address to bind gRPC API to",
		Flag:    "grpc-address",
	},
	{
		Name:    "server.rest-address",
		Default: ":7576",
		Usage:   "address to bind REST API to",
		Flag:    "rest-address",
	},
	{
		Name:    "server.allow-origin",
		Default: "",
		Usage:   "comma-separated list of origin addresses to allow in the via CORS",
		Flag:    "allow-origin",
	},
	{
		Name:    "server.certfile",
		Default: "",
		Usage:   "path to a TLS certificate file",
		Flag:    "certfile",
		Env:     "PANTO_CERTFILE",
	},
	{
		Name:    "server.certkey",
		Default: "",
		Usage:   "path to a TLS private key file",
		Flag:    "certkey",
		Env:     "PANTO_CERTKEY",
	},
	{
		Name:    "server.no-tls",
		Default: false,
		Usage:   "disable SSL/TLS",
		Flag:    "no-tls",
	},

	{
		Name:    "server-info.public-grpc-address",
		Default: "",
		Usage:   "the public address where a client can reach the gRPC API",
		Env:     "PANTO_PUBLIC_GRPC_ADDRESS",
	},
	{
		Name:    "server-info.public-rest-address",
		Default: "",
		Usage:   "the public address where a client can reach the REST API",
		Env:     "PANTO_PUBLIC_REST_ADDRESS",
	},

	{
		Name:    "influxdb.address",
		Default: "http://localhost:8086",
		Usage:   "address of an InfluxDB server",
		Flag:    "influxdb-address",
	},
	{
		Name:    "influxdb.database",
		Default: "panto",
		Usage:   "name of the InfluxDB database",
		Flag:    "influxdb-database",
	},

	{
		Name:    "db.path",
		Default: "/var/lib/panto/panto.sqlite",
		Usage:   "path to a SQLite configuration database file",
		Flag:    "db-path",
	},

	{
		Name:    "smtp.server",
		Default: "",
		Usage:   "address of a SMTP server",
		Env:     "PANTO_SMTP_SERVER",
	},
	{
		Name:    "smtp.port",
		Default: 587,
		Usage:   "port to use for SMTP server",
		Env:     "PANTO_SMTP_PORT",
	},
	{
		Name:    "smtp.username",
		Default: "",
		Usage:   "username for SMTP server",
		Env:     "PANTO_SMTP_USERNAME",
	},
	{
		Name:    "smtp.password",
		Default: "",
		Usage:   "password to use for SMTP server",
		Env:     "PANTO_SMTP_PASSWORD",
	},
	{
		Name:    "smtp.from",
		Default: "hello@panto.app",
		Usage:   "email address to send the mails from",
		Env:     "PANTO_SMTP_FROM",
	},
}

Options is a list of the panto executable

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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