|
| 1 | +app: |
| 2 | + # HTTP server IP address or host. |
| 3 | + # Used only for Web UI and Slack Events API communication types. |
| 4 | + # By default uses an empty string to accept connections to all network interfaces. |
| 5 | + # Keep it default when running inside a Docker container. |
| 6 | + host: "" |
| 7 | + |
| 8 | + # HTTP server port. Used only for Web UI and Slack Events API communication types. |
| 9 | + # Default: 2400. |
| 10 | + port: 2400 |
| 11 | + |
| 12 | + # Minimal duration of long query processing used for notifications. |
| 13 | + # When query processing is finished, a notification will be issued if duration |
| 14 | + # has exceeded this value. Default: 60s. |
| 15 | + minNotifyDuration: 60s |
| 16 | + |
| 17 | + # Debug mode. Default: false. |
| 18 | + debug: false |
| 19 | + |
| 20 | +# Integration with Postgres.ai Platform instance. It may be either |
| 21 | +# SaaS (https://postgres.ai) of self-managed instance (usually located inside |
| 22 | +# private infrastructure). |
| 23 | +platform: |
| 24 | + # Postgres.ai Platform API base URL. Default: https://postgres.ai/api/general. |
| 25 | + url: "https://postgres.ai/api/general" |
| 26 | + |
| 27 | + # Postgres.ai Platform API secret token. |
| 28 | + token: "platform_secret_token" |
| 29 | + |
| 30 | + # Enable command history in Postgres.ai Platform for collaboration and |
| 31 | + # visualization. Default: true. |
| 32 | + historyEnabled: true |
| 33 | + |
| 34 | +# Channel Mapping is used to allow working with more than one database in |
| 35 | +# one Database Lab instance. This is useful when your PostgreSQL master node |
| 36 | +# has more than one application databases and you want to organize optimization |
| 37 | +# processes for all of them. Thanks to Channel Mapping you can use a single Joe |
| 38 | +# Bot instance. |
| 39 | +channelMapping: |
| 40 | + # Active Database Lab instances that are used by this Joe Bot instance. |
| 41 | + dblabServers: |
| 42 | + # Alias for this Database Lab instance (internal, used only in this config) |
| 43 | + prod1: |
| 44 | + # URL of Database Lab API server |
| 45 | + url: "https://dblab.domain.com" |
| 46 | + # Secret token used to communicate with Database Lab API |
| 47 | + token: "secret_token" |
| 48 | + |
| 49 | + # Available communication types ("webui", "slack", "slackrtm", etc.) |
| 50 | + communicationTypes: |
| 51 | + # Communication type: Web UI (part of Postgres.ai Platform). |
| 52 | + webui: |
| 53 | + # Web UI name. Feel free to choose any name, it is just an alias. |
| 54 | + - name: WebUI |
| 55 | + credentials: |
| 56 | + # Web UI signing secret. This secret verifies each request to ensure |
| 57 | + # that it came from one of configured Web UI instances. |
| 58 | + signingSecret: secret_signing |
| 59 | + |
| 60 | + channels: |
| 61 | + # Web UI channel ID. Feel free to choose any name, it is just an alias. |
| 62 | + # This is what users see in browser. |
| 63 | + - channelID: ProductionDB |
| 64 | + |
| 65 | + # Postgres.ai Platform project to which user sessions are to be assigned. |
| 66 | + project: "demo" |
| 67 | + |
| 68 | + # Database Lab alias from the "dblabServers" section. |
| 69 | + dblabServer: prod1 |
| 70 | + |
| 71 | + # PostgreSQL connection parameters used to connect to a clone. |
| 72 | + # The username/password are not needed; they will be randomly |
| 73 | + # generated each time a new clone is created. |
| 74 | + dblabParams: |
| 75 | + # It is recommended to leave "postgres" here, because this DB |
| 76 | + # usually exists in any PostgreSQL setup. |
| 77 | + dbname: postgres |
| 78 | + # It is NOT recommended to work without SSL. This value will be |
| 79 | + # used in a clone's pg_hba.conf. |
| 80 | + # See https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS |
| 81 | + sslmode: prefer |
| 82 | + |
| 83 | + # Communication type: Slack Events API. |
| 84 | +# slack: |
| 85 | +# # Workspace name. Feel free to choose any name, it is just an alias. |
| 86 | +# - name: Workspace |
| 87 | +# |
| 88 | +# credentials: |
| 89 | +# # Bot User OAuth Access. |
| 90 | +# # See https://api.slack.com/authentication/token-types |
| 91 | +# accessToken: xoxb-XXXX |
| 92 | +# |
| 93 | +# # Slack App Signing Secret. |
| 94 | +# # See https://api.slack.com/authentication/verifying-requests-from-slack |
| 95 | +# signingSecret: signing_secret |
| 96 | +# |
| 97 | +# channels: |
| 98 | +# # Slack channel ID. In Slack app, right-click on the channel name, |
| 99 | +# # and choose "Additional options > Copy link". From that link, we |
| 100 | +# # need the last part consisting of 9 letters starting with "C". |
| 101 | +# - channelID: CXXXXXXXX |
| 102 | +# |
| 103 | +# # Postgres.ai Platform project to which user sessions are to be assigned. |
| 104 | +# project: "demo" |
| 105 | +# |
| 106 | +# # Database Lab alias from the "dblabServers" section. |
| 107 | +# dblabServer: prod1 |
| 108 | +# |
| 109 | +# # PostgreSQL connection parameters used to connect to a clone. |
| 110 | +# # The username/password are not needed; they will be randomly |
| 111 | +# # generated each time a new clone is created. |
| 112 | +# dblabParams: |
| 113 | +# # It is recommended to leave "postgres" here, because this DB |
| 114 | +# # usually exists in any PostgreSQL setup. |
| 115 | +# dbname: postgres |
| 116 | +# # It is NOT recommended to work without SSL. This value will be |
| 117 | +# # used in a clone's pg_hba.conf. |
| 118 | +# # See https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS |
| 119 | +# sslmode: prefer |
| 120 | + |
| 121 | +# # Communication type: Slack RTM. |
| 122 | +# slackrtm: |
| 123 | +# # Workspace name. Feel free to choose any name, it is just an alias. |
| 124 | +# - name: Workspace |
| 125 | +# |
| 126 | +# credentials: |
| 127 | +# # Bot User OAuth Access. |
| 128 | +# # See https://api.slack.com/authentication/token-types |
| 129 | +# accessToken: xoxb-XXXX |
| 130 | +# |
| 131 | +# channels: |
| 132 | +# # Slack channel ID. In Slack app, right-click on the channel name, |
| 133 | +# # and choose "Additional options > Copy link". From that link, we |
| 134 | +# # need the last part consisting of 9 letters starting with "C". |
| 135 | +# - channelID: CXXXXXXXX |
| 136 | +# |
| 137 | +# # Postgres.ai Platform project to which user sessions are to be assigned. |
| 138 | +# project: "demo" |
| 139 | +# |
| 140 | +# # Database Lab alias from the "dblabServers" section. |
| 141 | +# dblabServer: prod1 |
| 142 | +# |
| 143 | +# # PostgreSQL connection parameters used to connect to a clone. |
| 144 | +# # The username/password are not needed; they will be randomly |
| 145 | +# # generated each time a new clone is created. |
| 146 | +# dblabParams: |
| 147 | +# # It is recommended to leave "postgres" here, because this DB |
| 148 | +# # usually exists in any PostgreSQL setup. |
| 149 | +# dbname: postgres |
| 150 | +# # It is NOT recommended to work without SSL. This value will be |
| 151 | +# # used in a clone's pg_hba.conf. |
| 152 | +# # See https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS |
| 153 | +# sslmode: prefer |
| 154 | + |
| 155 | +# Enterprise Edition options – only to use with active Postgres.ai Platform EE |
| 156 | +# subscription. Changing these options you confirm that you have active |
| 157 | +# subscription to Postgres.ai Platform Enterprise Edition. |
| 158 | +# See more: https://postgres.ai/docs/platform/postgres-ai-platform-overview |
| 159 | +enterprise: |
| 160 | + quota: |
| 161 | + # Limit request rates. Works in pair with "interval" value. Default: 10. |
| 162 | + limit: 10 |
| 163 | + |
| 164 | + # Time interval (in seconds) to apply quota limit. Default: 60. |
| 165 | + interval: 60 |
| 166 | + |
| 167 | + audit: |
| 168 | + # Enable command logging. Default: false. |
| 169 | + enabled: false |
| 170 | + |
| 171 | + dblab: |
| 172 | + # Limit the number of available Database Lab instances. Default: 1. |
| 173 | + instanceLimit: 1 |
0 commit comments