v.34.1
This commit is contained in:
1 parent
4afa88a65e
commit
2ab44c4c62
49 files changed
+1523
-176
No files matched your search
@@ -51,6 +51,9 @@ struct Cli {
|
||||
default_value = "/var/lib/rustproxy"
|
||||
)]
|
||||
data_dir: PathBuf,
|
||||
/// Use an existing JSON file as canonical desired configuration.
|
||||
#[arg(long, global = true, env = "RUST_PROXY_CONFIG")]
|
||||
config: Option<PathBuf>,
|
||||
#[arg(
|
||||
long,
|
||||
global = true,
|
||||
@@ -78,6 +81,8 @@ struct Cli {
|
||||
enum Command {
|
||||
/// Start proxy and local administration listener.
|
||||
Serve(ServeOptions),
|
||||
/// Soft reload configuration and certificate files in the running service.
|
||||
Reload,
|
||||
/// Compatibility alias for `admin setup-token`; never an API access token.
|
||||
Token,
|
||||
/// Local administrator setup, password recovery and session management.
|
||||
@@ -349,6 +354,9 @@ async fn application() -> Result<()> {
|
||||
.command
|
||||
.context("a subcommand is required (or use --livelogs)")?;
|
||||
match command {
|
||||
Command::Reload => {
|
||||
config_command(resolve_installed_data_dir(cli.data_dir, data_dir_explicit), cli.admin_listen, ConfigCommand::Reload).await
|
||||
}
|
||||
Command::Token => {
|
||||
admin_command(
|
||||
resolve_installed_data_dir(cli.data_dir, data_dir_explicit),
|
||||
@@ -398,6 +406,7 @@ async fn application() -> Result<()> {
|
||||
cli.data_dir,
|
||||
cli.admin_listen,
|
||||
options,
|
||||
cli.config,
|
||||
startup_locks,
|
||||
update_check,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user