Skip to content

Commit

Permalink
Fix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lcswillems committed Aug 19, 2024
1 parent 9af1376 commit 42ec83d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,25 @@ REDIS_PORT=6379
REDIS_DB=0

#MongoDB
MONGODB_URL=
MONGODB_DATABASE=
MONGODB_USERNAME=
MONGODB_PASSWORD=
MONGODB_URL="mongodb://localhost:27017"
MONGODB_DATABASE="development"
MONGODB_USERNAME="admin"
MONGODB_PASSWORD="admin"

#TimescaleDB
TIMESCALEDB_URL="localhost"
TIMESCALEDB_PORT=5432
TIMESCALEDB_DATABASE="timescaledb"
TIMESCALEDB_USERNAME="timescaledb"
TIMESCALEDB_PASSWORD="password"

#Elasticsearch server to use for logging. Optional
ELASTICSEARCH_URL="https://testnet-index.multiversx.com"
ELASTICSEARCH_URL="https://devnet-index.multiversx.com"

#MultiversX resources
MX_API_URL="https://testnet-api.multiversx.com"
MX_GATEWAY_URL="https://testnet-gateway.multiversx.com"
MX_DEX_URL="https://devnet-graphql-next.maiar.exchange"
MX_API_URL="https://devnet-api.multiversx.com"
MX_GATEWAY_URL="https://devnet-gateway.multiversx.com"
MX_DEX_URL="http://localhost:3005"
MX_DATA_API_URL="https://data-api.multiversx.com"

#Enable or Disable modules
Expand All @@ -48,8 +55,8 @@ LOG_LEVEL=info
# JWT Authorization
JWT_SECRET=
NATIVE_AUTH_MAX_EXPIRY_SECONDS=86400
NATIVE_AUTH_ACCEPTED_ORIGINS=
IMPERSONATE_URL=
NATIVE_AUTH_ACCEPTED_ORIGINS=https://localhost:3000,https://devnet.xexchange.com
IMPERSONATE_URL=“https://devnet-extras-api.multiversx.com/impersonate/allowed”

# RabbitMQ
RABBITMQ_URL=
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ $ npm run start:dev
$ npm run start
```

4. Disable SSL for TimescaleDB in `timescaledb.module.ts`:

```
// ssl: true,
// extra: {
// ssl: {
// rejectUnauthorized: false,
// },
// },
```

It depends on the following external systems:

- gateway:
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,14 @@ services:
- MONGO_INITDB_ROOT_PASSWORD=admin
ports:
- '27017:27017'
timescaledb:
image: timescale/timescaledb:latest-pg12
restart: always
shm_size: 1gb
ports:
- '5432:5432'
environment:
POSTGRES_USER: timescaledb
POSTGRES_PASSWORD: password
volumes:
- /var/lib/postgresql/data

0 comments on commit 42ec83d

Please sign in to comment.