Config parameter rename
This commit is contained in:
parent
ec796d9813
commit
355f245bfe
@ -23,14 +23,17 @@ Build the docker image in this directory. Start the `GraphiQL` frontend by:
|
|||||||
* GraphiQL frontend is available at `:3000/graphiql`
|
* GraphiQL frontend is available at `:3000/graphiql`
|
||||||
GraphQL endpoint is available at `:3000/graphql`
|
GraphQL endpoint is available at `:3000/graphql`
|
||||||
|
|
||||||
By default, this build will expose only the "public" schema - to add other schemas, use either the env variables, or a config file `config.toml` and set the env var `CONFIG_PATH` to point to its location. Example `toml`:
|
By default, this build will expose only the "public" schema - to add other schemas, use either the env variables,
|
||||||
|
or a config file `config.toml` and set the env var `CONFIG_PATH` to point to its location. Example `toml`:
|
||||||
|
|
||||||
```
|
```
|
||||||
[database]
|
[database]
|
||||||
name = "vulcanize_public"
|
name = "vulcanize_public"
|
||||||
hostname = "localhost"
|
hostname = "localhost"
|
||||||
port = 5432
|
port = 5432
|
||||||
schemas = ["public", "yourschema"]
|
gq_schemas = ["public", "yourschema"]
|
||||||
|
gq_user = "graphql"
|
||||||
|
gq_password = "graphql"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
@ -34,7 +34,7 @@ export function parseConfig(
|
|||||||
database = parsedToml['database']['name'];
|
database = parsedToml['database']['name'];
|
||||||
user = parsedToml['database']['user'];
|
user = parsedToml['database']['user'];
|
||||||
password = parsedToml['database']['password'];
|
password = parsedToml['database']['password'];
|
||||||
gqSchemas = parsedToml['database']['schemas'];
|
gqSchemas = parsedToml['database']['gq_schemas'];
|
||||||
gqUser = parsedToml['database']['gq_user'] || gqUser;
|
gqUser = parsedToml['database']['gq_user'] || gqUser;
|
||||||
gqPassword = parsedToml['database']['gq_password'] || gqPassword;
|
gqPassword = parsedToml['database']['gq_password'] || gqPassword;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user