From d84be9dc6efd845916649c4b656bea0e41188170 Mon Sep 17 00:00:00 2001 From: Maix0 Date: Thu, 27 Jun 2024 14:17:10 +0200 Subject: [PATCH] Updated --- .gitignore | 3 +++ src/main.rs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ea8c4bf..7a479a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ /target +envfile +.direnv +.target diff --git a/src/main.rs b/src/main.rs index a90bd49..adae66b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -211,7 +211,7 @@ async fn main() { // initialize tracing let oauth = BasicClient::new(ClientId::new(unwrap_env!("CLIENT_ID"))) .set_redirect_uri( - RedirectUrl::new("http://localhost:9911/auth/callback".to_string()).unwrap(), + RedirectUrl::new("https://t.maix.me/auth/callback".to_string()).unwrap(), ) .set_introspection_url( IntrospectionUrl::new("https://api.intra.42.fr/oauth/token/info".to_string()) @@ -271,7 +271,7 @@ async fn main() { .with_state(state); // run our app with hyper - let listener = tokio::net::TcpListener::bind("127.0.0.1:3000") + let listener = tokio::net::TcpListener::bind("127.0.0.1:9911") .await .unwrap(); tracing::info!("listening on {}", listener.local_addr().unwrap());