Skip to content

Commit

Permalink
Merge pull request #3 from lacchain/feat/pubic-keys-update
Browse files Browse the repository at this point in the history
Feat/pubic keys update. Addresses #1
  • Loading branch information
eum602 authored Jul 18, 2023
2 parents e05b155 + 09278bd commit a749518
Show file tree
Hide file tree
Showing 79 changed files with 7,118 additions and 129 deletions.
7 changes: 6 additions & 1 deletion .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ EXPOSED_CONTAINER_SERVER_PORT = 3025
#TYPEORM

TYPEORM_TYPE = postgres
TYPEORM_HOST = localhost
TYPEORM_HOST = postgres
TYPEORM_USERNAME = postgres
TYPEORM_PASSWORD = postgres
TYPEORM_DATABASE = lacpass_trusted_list
Expand All @@ -33,3 +33,8 @@ ACCESS_TOKEN_LIFE = 360000000

RATE_LIMIT_WINDOW = 5
RATE_LIMIT_MAX_REQUESTS = 100

# custom variables
TRUSTED_REGISTRIES="1,0x609e1d1364d607b027e577e10ad97c571b9518c1,648540,0x86Faa7372AB68852c89fee37cCAc4b4c11a8471D,0x9e55c" # format: "INDEX_1,PD1,PD1_CID,COT1,COT1_CID--2,INDEX_2,PD2,PD2_CID-COT2,COT2_CID"
TRUSTED_REGISTRIES_INDEX_PUBLIC_KEYS_TO_EXPOSE="1"
RPC_CONNECTION_648540="http://35.185.112.219"
9 changes: 7 additions & 2 deletions .example.env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ EXPOSED_CONTAINER_SERVER_PORT = 3025
#TYPEORM

TYPEORM_TYPE = postgres
TYPEORM_HOST = localhost
TYPEORM_HOST = postgres
TYPEORM_USERNAME = postgres
TYPEORM_PASSWORD = postgres
TYPEORM_DATABASE = lacpass_trusted_list_development
Expand All @@ -31,4 +31,9 @@ ACCESS_TOKEN_LIFE = 360000000
#RATE LIMIT

RATE_LIMIT_WINDOW = 5
RATE_LIMIT_MAX_REQUESTS = 100
RATE_LIMIT_MAX_REQUESTS = 100

# custom variables
TRUSTED_REGISTRIES="1,0x609e1d1364d607b027e577e10ad97c571b9518c1,648540,0x86Faa7372AB68852c89fee37cCAc4b4c11a8471D,0x9e55c" # format: "INDEX_1,PD1,PD1_CID,COT1,COT1_CID--2,INDEX_2,PD2,PD2_CID-COT2,COT2_CID"
TRUSTED_REGISTRIES_INDEX_PUBLIC_KEYS_TO_EXPOSE="1"
RPC_CONNECTION_648540="http://35.185.112.219"
40 changes: 40 additions & 0 deletions .example.env.dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#PORT

export PORT=3025 # use port 80 when running with docker
export EXPOSED_CONTAINER_SERVER_PORT=3025

#TYPEORM

export TYPEORM_TYPE=postgres
export TYPEORM_HOST=localhost
export TYPEORM_USERNAME=postgres
export TYPEORM_PASSWORD=postgres
export TYPEORM_DATABASE=lacpass_trusted_list_development
export TYPEORM_PORT=5432
export TYPEORM_SYNCHRONIZE=false
export TYPEORM_LOGGING=true
export TYPEORM_MIGRATIONS_RUN=true
export EXPOSED_CONTAINER_TYPEORM_PORT=5455

#REDIS

export REDIS_HOST=redis
export REDIS_PORT=6379
export REDIS_PASSWORD=redis
export EXPOSED_CONTAINER_REDIS_PORT=6405

#TOKEN

export JWT_SECRET=some-secret-string
export ACCESS_TOKEN_LIFE=360000000

#RATE LIMIT

export RATE_LIMIT_WINDOW=5
export RATE_LIMIT_MAX_REQUESTS=100

# custom variables
export TRUSTED_REGISTRIES="1,0x609e1d1364d607b027e577e10ad97c571b9518c1,648540,0x86Faa7372AB68852c89fee37cCAc4b4c11a8471D,0x9e55c" # format: "INDEX_1,PD1,PD1_CID,COT1,COT1_CID--2,INDEX_2,PD2,PD2_CID-COT2,COT2_CID"
export TRUSTED_REGISTRIES_INDEX_PUBLIC_KEYS_TO_EXPOSE="1"
export DATABASE_URL="postgres://${TYPEORM_USERNAME}:${TYPEORM_PASSWORD}@${TYPEORM_HOST}:${EXPOSED_CONTAINER_TYPEORM_PORT}/${TYPEORM_DATABASE}" #default connection
export RPC_CONNECTION_648540="http://35.185.112.219"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
not-commitable/

### dotenv ###
.env.dev.sh
.env.dev
.env.test
.env.prod
Expand Down
Loading

0 comments on commit a749518

Please sign in to comment.