Added files for PostgreSQL peer auth mode
This commit is contained in:
parent
338deccc67
commit
e45ccb4311
@ -30,7 +30,9 @@ workers = 2
|
||||
# Path and file name of TLS certificate (chain) file
|
||||
# cert_file = "/path/to/cert.pem"
|
||||
|
||||
[oauth2]
|
||||
[auth]
|
||||
mode = "client"
|
||||
|
||||
# OAuth2 client id
|
||||
client_id = "5wl8hQV1thh07rScSoJ3aN56ETuXWprg"
|
||||
|
||||
|
41
bbconf/dbproxy-config-peer.toml
Normal file
41
bbconf/dbproxy-config-peer.toml
Normal file
@ -0,0 +1,41 @@
|
||||
[generic]
|
||||
# log level; can be error, warn, info, debug, trace
|
||||
log_level = "trace"
|
||||
|
||||
[oidc_config]
|
||||
# Incoming ID tokens are validated using, among other, the following fields.
|
||||
# Contents of 'iss' field, usually the URL of the authetnication realm
|
||||
iss = "https://basebox-test-1.eu.auth0.com/"
|
||||
# Access token audience field
|
||||
aud = "basebox-todo"
|
||||
|
||||
[graphql]
|
||||
# path and file name to GraphQL schema file
|
||||
schema_file = "todo_schema.graphql"
|
||||
# Path and file name of the resolver map file
|
||||
resolver_map_file = "bb_todo-resolver.toml"
|
||||
# Path and file name of the type map file
|
||||
type_map_file = "bb_todo-typemap.json"
|
||||
|
||||
[database]
|
||||
# Type of database; currently, only "postgres" is suppoerted
|
||||
db_type = "postgres"
|
||||
|
||||
# Setting just db_name will use PostgreSQL peer authentication mode
|
||||
db_name = "bb_todo"
|
||||
|
||||
[server]
|
||||
# Host name of (this) proxy server
|
||||
host = "localhost"
|
||||
|
||||
# Port number; default is 80 for http, 443 for https
|
||||
port = 8081
|
||||
|
||||
# number of HTTP server threads to spawn; default is one per CPU core
|
||||
workers = 2
|
||||
|
||||
# Path and file name of TLS/SSL key file
|
||||
# cert_key_file = "/path/to/key.pem"
|
||||
|
||||
# Path and file name of TLS certificate (chain) file
|
||||
# cert_file = "/path/to/cert.pem"
|
5
bbconf/dbproxy-peer.sh
Executable file
5
bbconf/dbproxy-peer.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ./util.sh
|
||||
|
||||
bb_run broker -c dbproxy-config-peer.toml
|
Loading…
Reference in New Issue
Block a user