Change default host finding for backend to 0.0.0.0
Some checks failed
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Has been skipped
Podman Rootless Demo / build-backend (push) Has been skipped
Podman Rootless Demo / build-frontend (push) Has been skipped
Podman Rootless Demo / deploy-prod (push) Has been cancelled

This commit is contained in:
continuist 2025-09-21 11:45:27 -04:00
parent cdd0bd2b3a
commit db3bc36b34

View file

@ -15,7 +15,7 @@ async fn main() -> anyhow::Result<()> {
dotenvy::from_path("config/api-postgres.env").ok(); dotenvy::from_path("config/api-postgres.env").ok();
// Get configuration from environment variables // Get configuration from environment variables
let host = env::var("HOST").unwrap_or_else(|_| "127.0.0.1".to_string()); let host = env::var("HOST").unwrap_or_else(|_| "0.0.0.0".to_string());
let port = env::var("PORT").unwrap_or_else(|_| "3001".to_string()); let port = env::var("PORT").unwrap_or_else(|_| "3001".to_string());
let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set"); let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set");