From c2e8f838b181bf8685ea9dd5bc5fbfe7390a6031 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:06:52 -0400 Subject: [PATCH 01/19] Moving environment variables out --- .env.sample | 1 - .gitignore | 1 + .main_db.env | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .main_db.env diff --git a/.env.sample b/.env.sample index c7494ce..fac9ed9 100644 --- a/.env.sample +++ b/.env.sample @@ -1,2 +1 @@ -DATABASE_URL=postgres://username:password@localhost/database_name SECRET_KEY=refero34o8rfhfjn983thf39fhc943rf923n3h \ No newline at end of file diff --git a/.gitignore b/.gitignore index e551aa3..972abd8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target Cargo.lock .env +.main_db.env diff --git a/.main_db.env b/.main_db.env new file mode 100644 index 0000000..669e014 --- /dev/null +++ b/.main_db.env @@ -0,0 +1 @@ +DATABASE_URL=postgres://username:password@localhost/database_name \ No newline at end of file -- 2.43.0 From d4ecdae953dec3b4634bdddea27a1345101e40c6 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:13:02 -0400 Subject: [PATCH 02/19] Updated gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 972abd8..33b18d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /target Cargo.lock .env -.main_db.env +main_db.env -- 2.43.0 From 4d558fcab90ee00c781604af669cf1ac6f9dd3b8 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:13:33 -0400 Subject: [PATCH 03/19] Removed env file --- .main_db.env | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .main_db.env diff --git a/.main_db.env b/.main_db.env deleted file mode 100644 index 669e014..0000000 --- a/.main_db.env +++ /dev/null @@ -1 +0,0 @@ -DATABASE_URL=postgres://username:password@localhost/database_name \ No newline at end of file -- 2.43.0 From de75411b88928fb2802f4f43d1d855253573d8e4 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:21:33 -0400 Subject: [PATCH 04/19] Updated gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 33b18d4..e479180 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /target Cargo.lock .env -main_db.env +auth_db.env -- 2.43.0 From 5c4cdb8a7252d72cb69670fc30755f360061afa1 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:27:43 -0400 Subject: [PATCH 05/19] Saving changes --- src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9ab8f4d..33cb7af 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,8 +36,13 @@ pub mod db { async fn get_db_url() -> String { #[cfg(debug_assertions)] // Example: Only load .env in debug builds dotenvy::dotenv().ok(); - - env::var(keys::DBURL).expect(keys::error::ERROR) + match dotenvy::from_filename("auth_db.env") { + Ok(_) => env::var(keys::DBURL).expect(keys::error::ERROR), + Err(err) => { + eprintln!("Error loading db env files {:?}", err); + String::new() + } + } } pub async fn migrations(pool: &sqlx::PgPool) { -- 2.43.0 From 9a6a190f36da653e72598bc3d26e69acd2c72967 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:30:49 -0400 Subject: [PATCH 06/19] Updating docker and switching to env files --- Dockerfile | 6 ++---- docker-compose.yaml | 22 +++++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 48e6b75..de67ef8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,9 +34,8 @@ RUN --mount=type=ssh mkdir src && \ # Copy the actual source code COPY src ./src # If you have other directories like `templates` or `static`, copy them too -# COPY templates ./templates -# COPY static ./static COPY .env ./.env +COPY auth_db.env ./auth_db.env COPY migrations ./migrations # << --- SSH MOUNT ADDED HERE --- >> @@ -63,9 +62,8 @@ COPY --from=builder /usr/src/app/target/release/icarus_auth . # Copy other necessary files like .env (if used for runtime config) or static assets # It's generally better to configure via environment variables in Docker though COPY --from=builder /usr/src/app/.env . +COPY --from=builder /usr/src/app/auth_db.env . COPY --from=builder /usr/src/app/migrations ./migrations -# COPY --from=builder /usr/src/app/templates ./templates -# COPY --from=builder /usr/src/app/static ./static # Expose the port your Axum app listens on (e.g., 3000 or 8000) EXPOSE 3000 diff --git a/docker-compose.yaml b/docker-compose.yaml index 38c1b41..8790d65 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,36 +2,40 @@ version: '3.8' # Use a recent version services: # Your Rust Application Service - app: + auth_api: build: . # Tells docker-compose to build the Dockerfile in the current directory container_name: icarus_auth # Optional: Give the container a specific name ports: # Map host port 8000 to container port 3000 (adjust as needed) # Format: "HOST_PORT:CONTAINER_PORT" - "8000:3000" - environment: + # environment: # Pass environment variables to your Rust application # RUST_LOG: info # Example: Set log level # IMPORTANT: Configure DATABASE_URL to connect to the 'db' service # The hostname 'db' matches the service name defined below. - DATABASE_URL: postgresql://icarus_op:password@db:5432/icarus_auth + # DATABASE_URL: postgresql://icarus_op:password@db:5432/icarus_auth # Add any other environment variables your app needs # APP_HOST: 0.0.0.0 # APP_PORT: 3000 + env_file: + - .env depends_on: - db: + auth_db: condition: service_healthy # Wait for the DB to be healthy before starting the app restart: unless-stopped # Optional: Restart policy # PostgreSQL Database Service - db: + auth_db: image: postgres:17.4-alpine # Use an official Postgres image (Alpine variant is smaller) container_name: icarus_auth_db # Optional: Give the container a specific name - environment: + # environment: # These MUST match the user, password, and database name in the DATABASE_URL above - POSTGRES_USER: icarus_op - POSTGRES_PASSWORD: password - POSTGRES_DB: icarus_auth + # POSTGRES_USER: icarus_op + # POSTGRES_PASSWORD: password + # POSTGRES_DB: icarus_auth + env_file: + - auth_db.env volumes: # Persist database data using a named volume - postgres_data:/var/lib/postgresql/data -- 2.43.0 From 0ee0e7d1521f8aacc022d900a1d5640c54ba34e2 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:34:06 -0400 Subject: [PATCH 07/19] Updated instructions --- docker_run.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker_run.txt b/docker_run.txt index bc0f021..7f319e4 100644 --- a/docker_run.txt +++ b/docker_run.txt @@ -1,13 +1,13 @@ # Docker stuff #Build app -docker-compose build --ssh default app +docker compose build --ssh default auth_api # Rebuild and bring up -docker-compose up -d --force-recreate app +docker compose up -d --force-recreate auth_api # Bring it down -docker-compose down -v +docker compose down -v # Pruning docker system prune -a \ No newline at end of file -- 2.43.0 From aa7b96a140f7efeed778b4213f716fd4002d8c2f Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:37:31 -0400 Subject: [PATCH 08/19] Added README --- READEME.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 READEME.md diff --git a/READEME.md b/READEME.md new file mode 100644 index 0000000..621af30 --- /dev/null +++ b/READEME.md @@ -0,0 +1,21 @@ + + +# Getting started +Take notice of the .env.sample files and create copies without the .sample in the name. + +`.env.sample` -> `.env` +`auth_db.env.sample` -> `auth_db.env` + +Ensure that all variables are populated and is correct. + +## Docker + +Build the images +``` +docker compose build --ssh default auth_api +``` + +Bring it up +``` +docker compose up -d --force-recreate auth_api +``` \ No newline at end of file -- 2.43.0 From 358c59870f6acde91f31a0b829c3ae797d95c026 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:43:28 -0400 Subject: [PATCH 09/19] Added auth_db.env sample file --- auth_db.env.sample | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 auth_db.env.sample diff --git a/auth_db.env.sample b/auth_db.env.sample new file mode 100644 index 0000000..8bd245e --- /dev/null +++ b/auth_db.env.sample @@ -0,0 +1,5 @@ +POSTGRES_USER=icarus_test +POSTGRES_PASSWORD=password +POSTGRES_DB=icarus_auth_test + +DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB} \ No newline at end of file -- 2.43.0 From 0ed57119d858584652c02f3a34650c4fb7f72064 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:54:42 -0400 Subject: [PATCH 10/19] Added another env file --- auth_db.env.docker.sample | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 auth_db.env.docker.sample diff --git a/auth_db.env.docker.sample b/auth_db.env.docker.sample new file mode 100644 index 0000000..6b305c3 --- /dev/null +++ b/auth_db.env.docker.sample @@ -0,0 +1,6 @@ +POSTGRES_USER=icarus_test +POSTGRES_PASSWORD=password +POSTGRES_DB=icarus_auth_test +POSTGRES_HOST=icarus_auth_ab + +DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB} \ No newline at end of file -- 2.43.0 From 042fae7a8fad46e8779e633fd839edcb5fa7b8de Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 12:55:38 -0400 Subject: [PATCH 11/19] Updated gitingore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index e479180..aa57468 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ Cargo.lock .env auth_db.env +auth_db.env.docker -- 2.43.0 From 6b12421e7c72ed2ed1d39a8423661a14e6e8ffe5 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 13:54:11 -0400 Subject: [PATCH 12/19] Fixed docker issue --- .dockerignore.yaml | 2 ++ Dockerfile | 5 ++++- docker-compose.yaml | 13 +++++++------ src/lib.rs | 17 ++++++++++------- 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/.dockerignore.yaml b/.dockerignore.yaml index 9b144ce..dc3b873 100644 --- a/.dockerignore.yaml +++ b/.dockerignore.yaml @@ -7,6 +7,8 @@ pkg/ # Ignore environment files (configure via docker-compose instead) .env* +auth_db.env* +auth_db.env.docker* # Ignore IDE/editor specific files .idea/ diff --git a/Dockerfile b/Dockerfile index de67ef8..4f3a66d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,7 +35,8 @@ RUN --mount=type=ssh mkdir src && \ COPY src ./src # If you have other directories like `templates` or `static`, copy them too COPY .env ./.env -COPY auth_db.env ./auth_db.env +# COPY auth_db.env.docker ./auth_db.env +COPY auth_db.env.docker ./auth_db.env COPY migrations ./migrations # << --- SSH MOUNT ADDED HERE --- >> @@ -62,6 +63,8 @@ COPY --from=builder /usr/src/app/target/release/icarus_auth . # Copy other necessary files like .env (if used for runtime config) or static assets # It's generally better to configure via environment variables in Docker though COPY --from=builder /usr/src/app/.env . +# COPY --from=builder /usr/src/app/auth_db.env.docker auth_db.env +# COPY --from=builder /usr/src/app/auth_db.env.docker ./auth_db.env COPY --from=builder /usr/src/app/auth_db.env . COPY --from=builder /usr/src/app/migrations ./migrations diff --git a/docker-compose.yaml b/docker-compose.yaml index 8790d65..ddd4567 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -20,6 +20,7 @@ services: # APP_PORT: 3000 env_file: - .env + # - auth_db.env depends_on: auth_db: condition: service_healthy # Wait for the DB to be healthy before starting the app @@ -29,13 +30,13 @@ services: auth_db: image: postgres:17.4-alpine # Use an official Postgres image (Alpine variant is smaller) container_name: icarus_auth_db # Optional: Give the container a specific name - # environment: + environment: # These MUST match the user, password, and database name in the DATABASE_URL above - # POSTGRES_USER: icarus_op - # POSTGRES_PASSWORD: password - # POSTGRES_DB: icarus_auth - env_file: - - auth_db.env + POSTGRES_USER: ${POSTGRES_USER:-icarus_op} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} + POSTGRES_DB: ${POSTGRES_DB:-icarus_auth} + # env_file: + # - auth_db.env.docker volumes: # Persist database data using a named volume - postgres_data:/var/lib/postgresql/data diff --git a/src/lib.rs b/src/lib.rs index 33cb7af..d97813f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,13 +36,16 @@ pub mod db { async fn get_db_url() -> String { #[cfg(debug_assertions)] // Example: Only load .env in debug builds dotenvy::dotenv().ok(); - match dotenvy::from_filename("auth_db.env") { - Ok(_) => env::var(keys::DBURL).expect(keys::error::ERROR), - Err(err) => { - eprintln!("Error loading db env files {:?}", err); - String::new() - } - } + env::var(keys::DBURL).expect(keys::error::ERROR) + /* + match dotenvy::from_filename("auth_db.env") { + Ok(_) => + Err(err) => { + eprintln!("Error loading db env files {:?}", err); + String::new() + } + } + */ } pub async fn migrations(pool: &sqlx::PgPool) { -- 2.43.0 From f349a2adc0839fc89ffd7c545f4753779460fb40 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 13:58:49 -0400 Subject: [PATCH 13/19] Docker cleanup --- .dockerignore.yaml | 2 ++ Dockerfile | 4 +--- docker-compose.yaml | 16 ---------------- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/.dockerignore.yaml b/.dockerignore.yaml index dc3b873..100a850 100644 --- a/.dockerignore.yaml +++ b/.dockerignore.yaml @@ -5,6 +5,8 @@ pkg/ # Ignore git directory .git/ +.gitea/ + # Ignore environment files (configure via docker-compose instead) .env* auth_db.env* diff --git a/Dockerfile b/Dockerfile index 4f3a66d..9722239 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,8 +35,6 @@ RUN --mount=type=ssh mkdir src && \ COPY src ./src # If you have other directories like `templates` or `static`, copy them too COPY .env ./.env -# COPY auth_db.env.docker ./auth_db.env -COPY auth_db.env.docker ./auth_db.env COPY migrations ./migrations # << --- SSH MOUNT ADDED HERE --- >> @@ -65,7 +63,7 @@ COPY --from=builder /usr/src/app/target/release/icarus_auth . COPY --from=builder /usr/src/app/.env . # COPY --from=builder /usr/src/app/auth_db.env.docker auth_db.env # COPY --from=builder /usr/src/app/auth_db.env.docker ./auth_db.env -COPY --from=builder /usr/src/app/auth_db.env . +# COPY --from=builder /usr/src/app/auth_db.env . COPY --from=builder /usr/src/app/migrations ./migrations # Expose the port your Axum app listens on (e.g., 3000 or 8000) diff --git a/docker-compose.yaml b/docker-compose.yaml index ddd4567..8dd5162 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -7,20 +7,9 @@ services: container_name: icarus_auth # Optional: Give the container a specific name ports: # Map host port 8000 to container port 3000 (adjust as needed) - # Format: "HOST_PORT:CONTAINER_PORT" - "8000:3000" - # environment: - # Pass environment variables to your Rust application - # RUST_LOG: info # Example: Set log level - # IMPORTANT: Configure DATABASE_URL to connect to the 'db' service - # The hostname 'db' matches the service name defined below. - # DATABASE_URL: postgresql://icarus_op:password@db:5432/icarus_auth - # Add any other environment variables your app needs - # APP_HOST: 0.0.0.0 - # APP_PORT: 3000 env_file: - .env - # - auth_db.env depends_on: auth_db: condition: service_healthy # Wait for the DB to be healthy before starting the app @@ -35,15 +24,10 @@ services: POSTGRES_USER: ${POSTGRES_USER:-icarus_op} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} POSTGRES_DB: ${POSTGRES_DB:-icarus_auth} - # env_file: - # - auth_db.env.docker volumes: # Persist database data using a named volume - postgres_data:/var/lib/postgresql/data ports: [] - # Optional: Expose port 5432 ONLY if you need to connect directly from your host machine (e.g., for debugging) - # - "5432:5432" - # pass: healthcheck: # Checks if Postgres is ready to accept connections test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"] -- 2.43.0 From 9a59a0dfccde2d504c859a7a4506b4d988b4e8c1 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 14:00:30 -0400 Subject: [PATCH 14/19] Docker related changes --- READEME.md | 3 +-- auth_db.env.docker.sample | 6 ------ auth_db.env.sample | 5 ----- 3 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 auth_db.env.docker.sample delete mode 100644 auth_db.env.sample diff --git a/READEME.md b/READEME.md index 621af30..5ba9a07 100644 --- a/READEME.md +++ b/READEME.md @@ -1,10 +1,9 @@ # Getting started -Take notice of the .env.sample files and create copies without the .sample in the name. +Take notice of the .env.sample file and create copies without the .sample in the name. `.env.sample` -> `.env` -`auth_db.env.sample` -> `auth_db.env` Ensure that all variables are populated and is correct. diff --git a/auth_db.env.docker.sample b/auth_db.env.docker.sample deleted file mode 100644 index 6b305c3..0000000 --- a/auth_db.env.docker.sample +++ /dev/null @@ -1,6 +0,0 @@ -POSTGRES_USER=icarus_test -POSTGRES_PASSWORD=password -POSTGRES_DB=icarus_auth_test -POSTGRES_HOST=icarus_auth_ab - -DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB} \ No newline at end of file diff --git a/auth_db.env.sample b/auth_db.env.sample deleted file mode 100644 index 8bd245e..0000000 --- a/auth_db.env.sample +++ /dev/null @@ -1,5 +0,0 @@ -POSTGRES_USER=icarus_test -POSTGRES_PASSWORD=password -POSTGRES_DB=icarus_auth_test - -DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB} \ No newline at end of file -- 2.43.0 From b4793a20df259abbf1e34c62b0bd675805828bcb Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 14:00:48 -0400 Subject: [PATCH 15/19] Cleanup --- src/lib.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d97813f..ca334c5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,15 +37,6 @@ pub mod db { #[cfg(debug_assertions)] // Example: Only load .env in debug builds dotenvy::dotenv().ok(); env::var(keys::DBURL).expect(keys::error::ERROR) - /* - match dotenvy::from_filename("auth_db.env") { - Ok(_) => - Err(err) => { - eprintln!("Error loading db env files {:?}", err); - String::new() - } - } - */ } pub async fn migrations(pool: &sqlx::PgPool) { -- 2.43.0 From 209fdd4fa9e1a47633470def6cdf4b6974cd7317 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 14:01:25 -0400 Subject: [PATCH 16/19] Updated gitignore --- .gitignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitignore b/.gitignore index aa57468..e551aa3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ /target Cargo.lock .env -auth_db.env -auth_db.env.docker -- 2.43.0 From 0f5db490b036e5104a7d3a2b9d8e771f3ec2b178 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 14:02:17 -0400 Subject: [PATCH 17/19] Docker cleanup --- .dockerignore.yaml | 2 -- Dockerfile | 3 --- 2 files changed, 5 deletions(-) diff --git a/.dockerignore.yaml b/.dockerignore.yaml index 100a850..dfcd3fa 100644 --- a/.dockerignore.yaml +++ b/.dockerignore.yaml @@ -9,8 +9,6 @@ pkg/ # Ignore environment files (configure via docker-compose instead) .env* -auth_db.env* -auth_db.env.docker* # Ignore IDE/editor specific files .idea/ diff --git a/Dockerfile b/Dockerfile index 9722239..c1b1081 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,9 +61,6 @@ COPY --from=builder /usr/src/app/target/release/icarus_auth . # Copy other necessary files like .env (if used for runtime config) or static assets # It's generally better to configure via environment variables in Docker though COPY --from=builder /usr/src/app/.env . -# COPY --from=builder /usr/src/app/auth_db.env.docker auth_db.env -# COPY --from=builder /usr/src/app/auth_db.env.docker ./auth_db.env -# COPY --from=builder /usr/src/app/auth_db.env . COPY --from=builder /usr/src/app/migrations ./migrations # Expose the port your Axum app listens on (e.g., 3000 or 8000) -- 2.43.0 From f1b343583281ea77450f55027252b0521d8e0d63 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 14:05:01 -0400 Subject: [PATCH 18/19] Updated .env sample file --- .env.sample | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index fac9ed9..d25d6f4 100644 --- a/.env.sample +++ b/.env.sample @@ -1 +1,6 @@ -SECRET_KEY=refero34o8rfhfjn983thf39fhc943rf923n3h \ No newline at end of file +SECRET_KEY=refero34o8rfhfjn983thf39fhc943rf923n3h +POSTGRES_USER=icarus_op_test +POSTGRES_PASSWORD=password +POSTGRES_DB=icarus_auth_test +POSTGRES_HOST=localhost +DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB} \ No newline at end of file -- 2.43.0 From a9184ea09f5ce32241322c719d2b6641ae11eeb1 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Apr 2025 14:13:56 -0400 Subject: [PATCH 19/19] Updated .env sample file --- .env.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index d25d6f4..30ccbb4 100644 --- a/.env.sample +++ b/.env.sample @@ -1,6 +1,6 @@ SECRET_KEY=refero34o8rfhfjn983thf39fhc943rf923n3h POSTGRES_USER=icarus_op_test POSTGRES_PASSWORD=password -POSTGRES_DB=icarus_auth_test +POSTGRES_DB=icarus_auth_test_db POSTGRES_HOST=localhost DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB} \ No newline at end of file -- 2.43.0