Skip to content

Commit

Permalink
fix(blobstorage, eventindexer, relayer): remove username and password
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodino committed Apr 9, 2024
1 parent 250ad7d commit 59a69e6
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions packages/blobstorage/.default.indexer.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ BEACON_URL=https://l1beacon.hekla.taiko.xyz
TAIKO_L1_CONTRACT_ADDRESS=0xC069c3d2a9f2479F559AD34485698ad5199C555f
DATABASE_HOST=localhost
DATABASE_PORT=3306
DATABASE_USER=root
DATABASE_PASSWORD=passw00d
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_NAME=blobs
METRICS_HTTP_PORT=7472
4 changes: 2 additions & 2 deletions packages/blobstorage/.default.server.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
HTTP_PORT=3282
DATABASE_HOST=localhost
DATABASE_PORT=3306
DATABASE_USER=root
DATABASE_PASSWORD=passw00d
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_NAME=blobs
METRICS_HTTP_PORT=7471
4 changes: 2 additions & 2 deletions packages/blobstorage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Repository for BLOB storage (archive and serve data)

```bash
cd ./migrations
goose mysql "root:passw00d@tcp(localhost:3306)/blobs" status
goose mysql "root:passw00d@tcp(localhost:3306)/blobs" up
goose mysql "<user>:<password>@tcp(localhost:3306)/blobs" status
goose mysql "<user>:<password>@tcp(localhost:3306)/blobs" up
```

These commands apply migrations to the `blobs` database.
Expand Down
4 changes: 2 additions & 2 deletions packages/eventindexer/.l1.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
HTTP_PORT=4100
PROMETHEUS_HTTP_PORT=6063
DATABASE_USER=root
DATABASE_PASSWORD=root
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_NAME=eventindexer
DATABASE_HOST=localhost:3306
DATABASE_MAX_IDLE_CONNS=50
Expand Down
4 changes: 2 additions & 2 deletions packages/eventindexer/.l2.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
HTTP_PORT=4009
METRICS_HTTP_PORT=6067
DATABASE_USER=root
DATABASE_PASSWORD=root
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_NAME=eventindexer
DATABASE_HOST=localhost:3306
DATABASE_MAX_IDLE_CONNS=50
Expand Down
4 changes: 2 additions & 2 deletions packages/relayer/.default.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
HTTP_PORT=4101
PROMETHEUS_HTTP_PORT=6061
MYSQL_USER=root
MYSQL_PASSWORD=root
MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_DATABASE=relayer
MYSQL_HOST=localhost:3306
MYSQL_MAX_IDLE_CONNS=50
Expand Down
8 changes: 4 additions & 4 deletions packages/relayer/.l1indexer.example.env
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
HTTP_PORT=4103
METRICS_HTTP_PORT=6062
DATABASE_USER=root
DATABASE_PASSWORD=root
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_NAME=relayer
DATABASE_HOST=localhost:3306
DATABASE_MAX_IDLE_CONNS=50
DATABASE_MAX_OPEN_CONNS=3000
DATABASE_CONN_MAX_LIFETIME=100000
QUEUE_USER=guest
QUEUE_PASSWORD=guest
QUEUE_USER=
QUEUE_PASSWORD=
QUEUE_HOST=localhost
QUEUE_PORT=5672
EVENT_NAME=MessageSent
Expand Down
8 changes: 4 additions & 4 deletions packages/relayer/.l1processor.example.env
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
PROMETHEUS_HTTP_PORT=6062
DATABASE_USER=root
DATABASE_PASSWORD=passw00d
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_NAME=relayer
DATABASE_HOST=localhost:3306
DATABASE_MAX_IDLE_CONNS=50
DATABASE_MAX_OPEN_CONNS=3000
DATABASE_CONN_MAX_LIFETIME=100000
QUEUE_USER=guest
QUEUE_PASSWORD=guest
QUEUE_USER=
QUEUE_PASSWORD=
QUEUE_HOST=localhost
QUEUE_PORT=5672
PROCESSOR_PRIVATE_KEY=
Expand Down
4 changes: 2 additions & 2 deletions packages/relayer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ To migrate the database schema in MySQL:

```sh
cd ./migrations
goose mysql "root:passw00d@tcp(localhost:3306)/relayer" status
goose mysql "root:passw00d@tcp(localhost:3306)/relayer" up
goose mysql "<user>:<password>@tcp(localhost:3306)/relayer" status
goose mysql "<user>:<password>@tcp(localhost:3306)/relayer" up
```

### Configure Environment Variables
Expand Down
2 changes: 1 addition & 1 deletion packages/relayer/docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
restart: always
environment:
- MYSQL_DATABASE=relayer
- MYSQL_ROOT_PASSWORD=passw00d
- MYSQL_ROOT_PASSWORD=******
ports:
- "3306:3306"
volumes:
Expand Down

0 comments on commit 59a69e6

Please sign in to comment.