build(docker): add Dockerfile
This commit is contained in:
parent
0243535469
commit
23f12904cc
7 changed files with 77 additions and 12 deletions
|
|
@ -1,4 +1,4 @@
|
|||
pub const DEFAULT_DB_PATH: &str = "/var/lib/minauthator/minauthator.db";
|
||||
pub const DEFAULT_ASSETS_PATH: &str = "/usr/local/lib/minauthator/assets";
|
||||
pub const DEFAULT_CONFIG_PATH: &str = "/etc/minauthator/config.yaml";
|
||||
pub const DEFAULT_CONFIG_PATH: &str = "/etc/minauthator/config.toml";
|
||||
|
||||
|
|
|
|||
|
|
@ -50,9 +50,10 @@ pub async fn get_kernel_context(start_config: StartKernelConfig) -> Result<Kerne
|
|||
let config: Config = get_config(config_path)
|
||||
.expect("Cannot get config.");
|
||||
|
||||
dotenvy::dotenv().context("loading .env")?;
|
||||
let _ = dotenvy::dotenv();
|
||||
let secrets = AppSecrets {
|
||||
jwt_secret: env::var("APP_JWT_SECRET").context("Expecting APP_JWT_SECRET env var.")?
|
||||
jwt_secret: env::var("APP_JWT_SECRET")
|
||||
.context("Expected APP_JWT_SECRET environment variable to exists.")?
|
||||
};
|
||||
|
||||
Ok(KernelContext {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue