From a2a90519e1ad57734c34b1932a7ad1bef3e96a66 Mon Sep 17 00:00:00 2001 From: 0xf8 <0xf8.dev@proton.me> Date: Wed, 21 Jun 2023 16:38:06 -0400 Subject: [PATCH] Change x-authlib-injector-api-location value --- src/server/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/mod.rs b/src/server/mod.rs index d26ab08..14b69ff 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -46,7 +46,7 @@ pub async fn start(db: &Database) -> anyhow::Result<()> { // Index app.at("/").get(|req: Request| async move { let res = Response::builder(200) - .header("x-authlib-injector-api-location", format!("{}/authlib/", req.state().config.external_base_url)) + .header("x-authlib-injector-api-location", format!("/authlib/")) .build(); Ok(res) @@ -59,7 +59,7 @@ pub async fn start(db: &Database) -> anyhow::Result<()> { app.at("/authlib/").nest(authlib::nest(db.to_owned())); app.at("/").nest(aliases::nest(db.to_owned())); - + // Listen app.listen(format!("{}:{}", &db.config.address, &db.config.port)).await?;