Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setup #1448

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading