diff --git a/project/backend/.env b/project/backend/.env index b52d5be..753e667 100644 --- a/project/backend/.env +++ b/project/backend/.env @@ -1,9 +1,9 @@ APP_NAME=thesis -BIND=0.0.0.0 +BIND=localhost PORT=3880 DOMAIN=localhost DATABASE_URL=mysql://diesel:fuel@localhost/thesis JWT_SECRET=taiCoh4dEvoo0IefEvoo0IefaiNai7uv SECRET=la4kuuPhSai2johyIephaa4fahm5Siey -ALLOWED_ORIGIN=localhost +ALLOWED_ORIGIN=http://localhost:3880 COOKIE_SECURE=false diff --git a/project/backend/src/main.rs b/project/backend/src/main.rs index 3ac981e..655fee7 100644 --- a/project/backend/src/main.rs +++ b/project/backend/src/main.rs @@ -84,7 +84,7 @@ async fn main() -> std::io::Result<()> { .domain(get_env("DOMAIN")) .name(get_env("APP_NAME")) .path("/") - .max_age(Duration::days(1).num_seconds()) + .max_age(Duration::days(30).num_seconds()) .secure(false), )) .data(get_pool())