fix: rename project to minauthator

This commit is contained in:
Matthieu Bessat 2024-11-15 18:34:17 +01:00
parent fbbe6719b6
commit fa31485e44
7 changed files with 36 additions and 20 deletions

View file

@ -5,9 +5,9 @@ use log::info;
use crate::{get_app_context, server::{start_http_server, ServerConfig}, DEFAULT_ASSETS_PATH};
#[derive(Debug, FromArgs)]
/// Autotasker daemon
/// Minauthator daemon
struct ServerCliFlags {
/// path to YAML config file to use to configure autotasker
/// path to YAML config file to use to configure this instance
#[argh(option)]
config: Option<String>,

View file

@ -17,9 +17,9 @@ use log::info;
use sqlx::{Pool, Sqlite};
use models::config::{AppSecrets, Config};
pub const DEFAULT_DB_PATH: &str = "/var/lib/autotasker/autotasker.db";
pub const DEFAULT_ASSETS_PATH: &str = "/usr/local/lib/autotasker/assets";
pub const DEFAULT_CONFIG_PATH: &str = "/etc/autotasker/config.yaml";
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";
fn get_config(path: String) -> Result<Config> {
let inp_def_yaml = fs::read_to_string(path)

View file

@ -37,9 +37,8 @@ struct Role {
#[derive(Debug, Clone, Serialize, Deserialize)]
#[fully_pub]
/// Configuration of this minauthator instance
/// Configuration of this Minauthator instance
struct Config {
/// configure current autotasker instance
instance: InstanceConfig,
applications: Vec<Application>,
roles: Vec<Role>

View file

@ -21,7 +21,7 @@ impl UserTokenClaims {
UserTokenClaims {
sub: user_id.into(),
exp: get_current_timestamp() + 86_000,
iss: "Minauth".into()
iss: "Minauthator".into()
}
}
}

View file

@ -1,9 +1,9 @@
{% extends "layouts/base.html" %}
{% block body %}
<h1>Bienvenue sur Minauth</h1>
<h1>Bienvenue sur Minauthator</h1>
<p>
Minauth is free software under <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a> licence.
Minauthator is free software under <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a> licence.
You can find source code on a <a href="https://forge.lefuturiste.fr/mbess/minauth">self-hosted forge repository</a>.
</p>