File tree Expand file tree Collapse file tree 7 files changed +4
-25
lines changed Expand file tree Collapse file tree 7 files changed +4
-25
lines changed Original file line number Diff line number Diff line change 1
1
API_URL=http://localhost:8003
2
- BLOCK_EXPLORER_URL=http://localhost:3000
3
2
BLOCK_LOADER_TRANSACTION_TIMEOUT=5000
4
3
CHAINPORT_API_URL=https://preprod-api.chainport.io/
5
4
CHAINPORT_API_VERSION=2
Original file line number Diff line number Diff line change 1
1
API_URL = http://localhost:8003
2
- BLOCK_EXPLORER_URL = test
3
2
BLOCK_LOADER_TRANSACTION_TIMEOUT = 5000
4
3
CHAINPORT_API_URL = https://preprod-api.chainport.io/
5
4
CHAINPORT_API_VERSION = 2
Original file line number Diff line number Diff line change 10
10
11
11
env :
12
12
API_URL : http://localhost:8003
13
- BLOCK_EXPLORER_URL : http://localhost:3000
14
13
DATABASE_CONNECTION_POOL_URL : postgres://postgres:password@localhost:5432/ironfish_api_test
15
14
DATABASE_URL : postgres://postgres:password@localhost:5432/ironfish_api_test
16
15
DATADOG_URL : 127.0.0.1
Original file line number Diff line number Diff line change 14
14
15
15
## Environment
16
16
17
- You'll need a ` .env ` file with the following keys:
18
-
19
- - ` API_URL `
20
- - ` BLOCK_EXPLORER_URL `
21
- - ` DATABASE_CONNECTION_POOL_URL `
22
- - ` DATABASE_URL `
23
- - ` DATADOG_URL `
24
- - ` INFLUXDB_API_TOKEN `
25
- - ` INFLUXDB_BUCKET `
26
- - ` INFLUXDB_ORG `
27
- - ` INFLUXDB_URL `
28
- - ` IRONFISH_API_KEY `
29
- - ` NETWORK_VERSION `
30
- - ` NODE_ENV `
31
- - ` WORKER_COUNT `
32
-
33
- You can copy ` .env.template ` to your own ` .env ` file
17
+ You'll need a ` .env ` file including keys listed in ` env.template ` . We recommend copying ` .env.template ` to your own ` .env ` file.
34
18
35
19
## Running
36
20
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ export const REST_MODULES = [
52
52
isGlobal : true ,
53
53
validationSchema : joi . object ( {
54
54
API_URL : joi . string ( ) . required ( ) ,
55
- BLOCK_EXPLORER_URL : joi . string ( ) . required ( ) ,
56
55
BLOCK_LOADER_TRANSACTION_TIMEOUT : joi . number ( ) . optional ( ) ,
57
56
CHAINPORT_API_URL : joi . string ( ) . required ( ) ,
58
57
CHAINPORT_API_VERSION : joi . number ( ) . required ( ) ,
Original file line number Diff line number Diff line change @@ -38,13 +38,13 @@ async function bootstrap(): Promise<void> {
38
38
const config = app . get ( ApiConfigService ) ;
39
39
const logger = app . get ( LoggerService ) ;
40
40
41
- const defaultOrigins = [ config . get < string > ( 'BLOCK_EXPLORER_URL' ) ] ;
41
+ const defaultOrigins = [ / i r o n f i s h . n e t w o r k $ / ] ;
42
42
const enabledOrigins = config . isStaging ( )
43
43
? [
44
44
...defaultOrigins ,
45
45
/ l o c a l h o s t / ,
46
- / b l o c k - e x p l o r e r .* \. v e r c e l \. a p p / ,
47
- / w e b s i t e - t e s t n e t . * \. v e r c e l \. a p p / ,
46
+ / b l o c k - e x p l o r e r .* i r o n f i s h \. v e r c e l \. a p p $ / ,
47
+ / o r e o w a l l e t - b r i d g e . * i r o n f i s h \. v e r c e l \. a p p $ / ,
48
48
]
49
49
: defaultOrigins ;
50
50
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ export async function bootstrapTestApp(): Promise<INestApplication> {
19
19
isGlobal : true ,
20
20
validationSchema : joi . object ( {
21
21
API_URL : joi . string ( ) . required ( ) ,
22
- BLOCK_EXPLORER_URL : joi . string ( ) . required ( ) ,
23
22
BLOCK_LOADER_TRANSACTION_TIMEOUT : joi . number ( ) . optional ( ) ,
24
23
CHAINPORT_API_URL : joi . string ( ) . required ( ) ,
25
24
CHAINPORT_API_VERSION : joi . number ( ) . required ( ) ,
You can’t perform that action at this time.
0 commit comments