Skip to content

Commit

Permalink
fix:redis-tls (#361)
Browse files Browse the repository at this point in the history
* fix dockle scan on ci

* fix registry login

* debug imgs

* scan tar imgs

* test

* add tar cleanup

* test

* pr workflow fix

* declutter dockle

* add comment

* add microservice in pr comment

* test w/ individual service failing

* fix dockerfile

* fix: vote table row responsiveness

* Refactor/change logic for file upload to S3 (#328)

* refactor: changed getFileUrl function in order to display images on website for longer than 7 days

* refactor: changed getFileUrl function in order to display images on website for longer than 7 days

* feat: dht-queue (#336)

Added persistent dht-queue which will be responsible for publishing cid to dht

* refactor: image upload to S3 (#337)

* fitx/rationale-governance-format

Rationale - Removed body.references since it will be empty until CC-portal enables that feature
GAP title and abstract is now parsing in compatibility with CIP-0108 (body.title, body.abstract)

* chore: change guides btn link

* fix: rm-gap-title-abstract-len-constraint

Remove len constraints for gap.title and gap.abstract (was 80 and 2500 char length)
fixed error if db data is undefined when fetching from db sync

* refactor: add redis username

Added username env variable within backend/worker-service/ipfs-service

* Fix add redis creds (#343)

* feat: add redis user

* fix: add config to worker-service

* fix-add-redis-creds: fixed order within example.env

* fix: add docker compose args

---------

Co-authored-by: nike-getto <[email protected]>
Co-authored-by: BEDev24 <[email protected]>

* Fix add redis creds (#344)

* feat: add redis user

* fix: add config to worker-service

* fix-add-redis-creds: fixed order within example.env

* fix: add docker compose args

* refactor: cache docker-compose

---------

Co-authored-by: nike-getto <[email protected]>
Co-authored-by: BEDev24 <[email protected]>

* fix: typo

* fix: typo

* refactor: cache service

* refactor/redis-auth (#345)

* fix: plural grammar corrections

* refactor: pruning worker processors (#346)

* fix: latest updates content overlaping

* refactor: ipfs service path and minor refactoring

* fix: usersnap remove other buttons (#323)

* fix: Overlapping on tables

* fix: don't show top banner on mainnet

* fix: show more btn not loading more content, update env example

* refactor: renamed migration name for gap len constraint removal

* refactor: ipfs volume

* add correct vars (#352)

Co-authored-by: nike-getto <[email protected]>

* fix: ipfs-redis-service (#360)

* fix/ipfs-redis-service: tls connection to redis

* fix/ipfs-redis-service: tls connection to redis

---------

Co-authored-by: Baja-KS <[email protected]>
Co-authored-by: Lazar Lukić <[email protected]>
Co-authored-by: Vojimirovich <[email protected]>
Co-authored-by: Vojimirovich <[email protected]>
Co-authored-by: nike-getto <[email protected]>
Co-authored-by: BEDev24 <[email protected]>
Co-authored-by: kubet <[email protected]>
  • Loading branch information
8 people authored Sep 17, 2024
1 parent f3cb199 commit b780f99
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ JWT_REFRESH_TOKEN_EXPIRES_IN=7d
REDIS_HOST=cache
REDIS_PORT=6379
REDIS_PASSWORD=password
REDIS_TLS=false

# AWS SES
AWS_ACCESS_KEY_ID=your_access_key_id
Expand Down
1 change: 1 addition & 0 deletions backend/src/redis/client/redis-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const redisClientFactory: FactoryProvider<Redis> = {
host: configService.getOrThrow('REDIS_HOST'),
port: configService.getOrThrow('REDIS_PORT'),
password: configService.getOrThrow('REDIS_PASSWORD'),
...(configService.get('REDIS_TLS') === 'false' ? {} : { tls: {} }),
});

redisInstance.on('error', (e) => {
Expand Down
1 change: 1 addition & 0 deletions ipfs-service/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ IPNS_CONSTITUTION_KEY_NAME='some-key-name'
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=password
REDIS_TLS=false

## DHT QUEUE ##
# Attempts
Expand Down
1 change: 1 addition & 0 deletions ipfs-service/src/bullmq/bullmq.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ExpressAdapter } from "@bull-board/express";
host: configService.getOrThrow("REDIS_HOST"),
port: configService.getOrThrow("REDIS_PORT"),
password: configService.getOrThrow("REDIS_PASSWORD"),
...(configService.get('REDIS_TLS') === 'false' ? {} : { tls: {} }),
},
}),
inject: [ConfigService],
Expand Down
1 change: 1 addition & 0 deletions worker-service/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ DB_SYNC_POSTGRES_PASSWORD=password
REDIS_HOST=cache
REDIS_PORT=6379
REDIS_PASSWORD=password
REDIS_TLS=false

# PAGINATION
HOT_ADDRESSES_PER_PAGE=10
Expand Down
1 change: 1 addition & 0 deletions worker-service/src/bullmq/bullmq.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { ExpressAdapter } from '@bull-board/express';
host: configService.getOrThrow('REDIS_HOST'),
port: configService.getOrThrow('REDIS_PORT'),
password: configService.getOrThrow('REDIS_PASSWORD'),
...(configService.get('REDIS_TLS') === 'false' ? {} : { tls: {} }),
},
}),
inject: [ConfigService],
Expand Down

0 comments on commit b780f99

Please sign in to comment.