2024-03-16 09:34:29 +01:00
|
|
|
let configuration () =
|
|
|
|
let conf = Otoml.Parser.from_file "/etc/lanonna.toml" in
|
2024-03-25 14:17:34 +01:00
|
|
|
let mq_url = Otoml.find conf Otoml.get_string ["pam"; "mq_url"] in
|
|
|
|
let mq_user = Otoml.find conf Otoml.get_string ["pam"; "mq_user"] in
|
|
|
|
let mq_password = Otoml.find conf Otoml.get_string ["pam"; "mq_password"] in
|
|
|
|
let base64_creds = Otoml.find conf Otoml.get_string ["pam"; "forgejo_base64"] in
|
|
|
|
(* config_file {mq_url = mq_url; mq_user = mq_user; mq_password = mq_password; base64_creds = base64_creds} *)
|
|
|
|
(mq_url, mq_user, mq_password, base64_creds)
|