From 654e7b1801ddea3a12db099ea39249faa66eb1ea Mon Sep 17 00:00:00 2001 From: Mika Bomm Date: Thu, 5 Sep 2024 23:20:10 +0200 Subject: [PATCH] update .env logic to use dotenv for java instead of using intellij's internal environent manager --- .env.example | 6 +++- .run/start server.run.xml | 4 --- server/build.gradle | 6 ++++ .../docusphere/config/DataSourceConfig.java | 28 ++++++++++++++++ .../mixel/docusphere/config/DotenvConfig.java | 33 +++++++++++++++++++ server/src/main/resources/application.yml | 11 +++++-- 6 files changed, 80 insertions(+), 8 deletions(-) create mode 100644 server/src/main/java/com/mixel/docusphere/config/DataSourceConfig.java create mode 100644 server/src/main/java/com/mixel/docusphere/config/DotenvConfig.java diff --git a/.env.example b/.env.example index c1ce405..fc7fb06 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,7 @@ # Database section DB_USER= -DB_PASSWORD= \ No newline at end of file +DB_PASSWORD= + +# Minio S3 section +MINIO_ACCESS_KEY= +MINIO_SECRET_KEY= \ No newline at end of file diff --git a/.run/start server.run.xml b/.run/start server.run.xml index 7704047..2139df8 100644 --- a/.run/start server.run.xml +++ b/.run/start server.run.xml @@ -2,10 +2,6 @@