mirror of
https://codeberg.org/spire/dispenser.git
synced 2026-06-03 10:04:07 +02:00
secrets for passwords
This commit is contained in:
parent
cd68f523df
commit
ec08b04d7d
1 changed files with 2 additions and 0 deletions
|
|
@ -98,7 +98,9 @@ fn load_secret(raw: String) -> Result<String, std::io::Error> {
|
|||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct ServerConfig {
|
||||
#[serde(deserialize_with = "deserialize_secret")]
|
||||
pub rcon: String,
|
||||
#[serde(deserialize_with = "deserialize_secret")]
|
||||
pub password: String,
|
||||
#[serde(default = "server_default_image")]
|
||||
pub image: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue