auth

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CLIFlags = []cli.Flag{
		&cli.StringFlag{
			Name:     "server",
			Aliases:  []string{"starlight-proxy"},
			Value:    "starlight.yuri.moe",
			Usage:    "the starlight proxy address, report the converted image to the Starlight proxy server",
			Required: false,
			EnvVars:  []string{"STARLIGHT_PROXY"},
		},
		&cli.BoolFlag{
			Name:     "plain-http",
			Aliases:  []string{"insecure-proxy"},
			Usage:    "use plain http connects to the remote server",
			Required: false,
		},
		&cli.StringFlag{
			Name:    "username",
			Aliases: []string{"u"},
			Usage: "username for Starlight Proxy authentication. " +
				"(Starlight proxy does not provide authentication, please use a reverse proxy for authentication)",
			EnvVars: []string{"STARLIGHT_USERNAME"},
		},
		&cli.StringFlag{
			Name:    "password",
			Aliases: []string{"p"},
			Usage:   "password for Starlight Proxy authentication",
			EnvVars: []string{"STARLIGHT_PASSWORD"},
		},
	}
	DaemonFlag = []cli.Flag{
		&cli.StringFlag{
			Name:    "config-name",
			Aliases: []string{"cn"},
			Value:   "default",
			Usage:   "the name of the config file in /etc/starlight/",
		},
	}
)

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