Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/finalize exposing redis password env variable (#975)
Thomas Kaul697e92f81837
diff --git a/.env b/.envindex 3b1b288770..44c1ec3a5b 100644--- a/.env+++ b/.env@@ -3,15 +3,15 @@ COMPOSE_PROJECT_NAME=ghostfolio-development# CACHEREDIS_HOST=localhostREDIS_PORT=6379-REDIS_PASSWORD=password+REDIS_PASSWORD=<INSERT_REDIS_PASSWORD># POSTGRESPOSTGRES_DB=ghostfolio-dbPOSTGRES_USER=user-POSTGRES_PASSWORD=password+POSTGRES_PASSWORD=<INSERT_POSTGRES_PASSWORD>-ACCESS_TOKEN_SALT=GHOSTFOLIO+ACCESS_TOKEN_SALT=<INSERT_RANDOM_STRING>ALPHA_VANTAGE_API_KEY=DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?sslmode=prefer-JWT_SECRET_KEY=123456+JWT_SECRET_KEY=<INSERT_RANDOM_STRING>PORT=3333diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e72ff07638..dca00fbc20 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## Unreleased++### Changed++- Exposed the environment variable `REDIS_PASSWORD`+## 1.154.0 - 28.05.2022### Addeddiff --git a/apps/api/src/app/redis-cache/redis-cache.module.ts b/apps/api/src/app/redis-cache/redis-cache.module.tsindex 05fa7bf888..96cf503256 100644--- a/apps/api/src/app/redis-cache/redis-cache.module.ts+++ b/apps/api/src/app/redis-cache/redis-cache.module.ts@@ -14,8 +14,8 @@ import { RedisCacheService } from './redis-cache.service';useFactory: async (configurationService: ConfigurationService) => ({host: configurationService.get('REDIS_HOST'),max: configurationService.get('MAX_ITEM_IN_CACHE'),- port: configurationService.get('REDIS_PORT'),password: configurationService.get('REDIS_PASSWORD'),+ port: configurationService.get('REDIS_PORT'),store: redisStore,ttl: configurationService.get('CACHE_TTL')})diff --git a/apps/api/src/services/configuration.service.ts b/apps/api/src/services/configuration.service.tsindex 5b471686f7..9666e7ab71 100644--- a/apps/api/src/services/configuration.service.ts+++ b/apps/api/src/services/configuration.service.ts@@ -36,8 +36,8 @@ export class ConfigurationService {PORT: port({ default: 3333 }),RAKUTEN_RAPID_API_KEY: str({ default: '' }),REDIS_HOST: str({ default: 'localhost' }),- REDIS_PORT: port({ default: 6379 }),REDIS_PASSWORD: str({ default: '' }),+ REDIS_PORT: port({ default: 6379 }),ROOT_URL: str({ default: 'http://localhost:4200' }),STRIPE_PUBLIC_KEY: str({ default: '' }),STRIPE_SECRET_KEY: str({ default: '' }),diff --git a/apps/api/src/services/interfaces/environment.interface.ts b/apps/api/src/services/interfaces/environment.interface.tsindex ec363c0e14..79db93f54e 100644--- a/apps/api/src/services/interfaces/environment.interface.ts+++ b/apps/api/src/services/interfaces/environment.interface.ts@@ -27,8 +27,8 @@ export interface Environment extends CleanedEnvAccessors {PORT: number;RAKUTEN_RAPID_API_KEY: string;REDIS_HOST: string;- REDIS_PORT: number;REDIS_PASSWORD: string;+ REDIS_PORT: number;ROOT_URL: string;STRIPE_PUBLIC_KEY: string;STRIPE_SECRET_KEY: string;