Skip to content

Commit e3c6904

Browse files
pmdroidnbarbettini
andauthored
feat: added embedded postgres (#20)
* fix: reverted config * fix: schema use postgres instead of new key * feat: added version 2.0 * fix: schema example * Make embedded and external postgres mutually exclusive * Revert changes to 1.0 --------- Co-authored-by: Nate Barbettini <[email protected]>
1 parent 66b9161 commit e3c6904

File tree

2 files changed

+816
-0
lines changed

2 files changed

+816
-0
lines changed

engine/config/2.0/example.yaml

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# yaml-language-server: $schema=./schema.json
2+
$schema: ./engine/config/2.0/schema.json
3+
4+
api:
5+
development: ${env:API_DEVELOPMENT}
6+
host: ${env:ARCADE_API_HOST}
7+
port: ${env:ARCADE_API_PORT}
8+
9+
10+
auth:
11+
providers:
12+
- id: default-atlassian
13+
description: 'The default Atlassian provider'
14+
enabled: false
15+
type: oauth2
16+
provider_id: atlassian
17+
client_id: ${env:ATLASSIAN_CLIENT_ID}
18+
client_secret: ${env:ATLASSIAN_CLIENT_SECRET}
19+
20+
- id: default-discord
21+
description: 'The default Discord provider'
22+
enabled: false
23+
type: oauth2
24+
provider_id: discord
25+
client_id: ${env:DISCORD_CLIENT_ID}
26+
client_secret: ${env:DISCORD_CLIENT_SECRET}
27+
28+
- id: default-dropbox
29+
description: 'The default Dropbox provider'
30+
enabled: false
31+
type: oauth2
32+
provider_id: dropbox
33+
client_id: ${env:DROPBOX_CLIENT_ID}
34+
client_secret: ${env:DROPBOX_CLIENT_SECRET}
35+
36+
- id: default-github
37+
description: 'The default GitHub provider'
38+
enabled: false
39+
type: oauth2
40+
provider_id: github
41+
client_id: ${env:GITHUB_CLIENT_ID}
42+
client_secret: ${env:GITHUB_CLIENT_SECRET}
43+
44+
- id: default-google
45+
description: 'The default Google provider'
46+
enabled: false
47+
type: oauth2
48+
provider_id: google
49+
client_id: ${env:GOOGLE_CLIENT_ID}
50+
client_secret: ${env:GOOGLE_CLIENT_SECRET}
51+
52+
- id: default-linkedin
53+
description: 'The default LinkedIn provider'
54+
enabled: false
55+
type: oauth2
56+
provider_id: linkedin
57+
client_id: ${env:LINKEDIN_CLIENT_ID}
58+
client_secret: ${env:LINKEDIN_CLIENT_SECRET}
59+
60+
- id: default-microsoft
61+
description: 'The default Microsoft provider'
62+
enabled: false
63+
type: oauth2
64+
provider_id: microsoft
65+
client_id: ${env:MICROSOFT_CLIENT_ID}
66+
client_secret: ${env:MICROSOFT_CLIENT_SECRET}
67+
68+
- id: default-reddit
69+
description: 'The default Reddit provider'
70+
enabled: false
71+
type: oauth2
72+
provider_id: reddit
73+
client_id: ${env:REDDIT_CLIENT_ID}
74+
client_secret: ${env:REDDIT_CLIENT_SECRET}
75+
76+
- id: default-slack
77+
description: 'The default Slack provider'
78+
enabled: false
79+
type: oauth2
80+
provider_id: slack
81+
client_id: ${env:SLACK_CLIENT_ID}
82+
client_secret: ${env:SLACK_CLIENT_SECRET}
83+
84+
- id: default-spotify
85+
description: 'The default Spotify provider'
86+
enabled: false
87+
type: oauth2
88+
provider_id: spotify
89+
client_id: ${env:SPOTIFY_CLIENT_ID}
90+
client_secret: ${env:SPOTIFY_CLIENT_SECRET}
91+
92+
- id: default-twitch
93+
description: 'The default Twitch provider'
94+
enabled: false
95+
type: oauth2
96+
provider_id: twitch
97+
client_id: ${env:TWITCH_CLIENT_ID}
98+
client_secret: ${env:TWITCH_CLIENT_SECRET}
99+
100+
- id: default-x
101+
description: 'The default X provider'
102+
enabled: false
103+
type: oauth2
104+
provider_id: x
105+
client_id: ${env:X_CLIENT_ID}
106+
client_secret: ${env:X_CLIENT_SECRET}
107+
108+
- id: default-zoom
109+
description: 'The default Zoom provider'
110+
enabled: false
111+
type: oauth2
112+
provider_id: zoom
113+
client_id: ${env:ZOOM_CLIENT_ID}
114+
client_secret: ${env:ZOOM_CLIENT_SECRET}
115+
116+
117+
llm:
118+
models:
119+
- id: my-openai-model-provider
120+
openai:
121+
api_key: ${env:OPENAI_API_KEY}
122+
#- id: my-anthropic-model-provider
123+
# anthropic:
124+
# api_key: ${env:ANTHROPIC_API_KEY}
125+
# - id: my-ollama-model-provider
126+
# openai:
127+
# base_url: http://localhost:11434
128+
# chat_endpoint: /v1/chat/completions
129+
# model: llama3.2
130+
# api_key: ollama
131+
#- id: my-groq-model-provider
132+
# openai:
133+
# base_url: 'https://api.groq.com/openai/v1'
134+
# api_key: ${env:GROQ_API_KEY}
135+
136+
137+
security:
138+
root_keys:
139+
- id: key1
140+
default: true
141+
value: ${env:ROOT_KEY_1}
142+
143+
144+
storage:
145+
postgres:
146+
data_path: ${env:POSTGRES_DATA_PATH}
147+
# Or, connect to an external Postgres instance:
148+
# user: ${env:POSTGRES_USER}
149+
# password: ${env:POSTGRES_PASSWORD}
150+
# host: ${env:POSTGRES_HOST}
151+
# port: ${env:POSTGRES_PORT}
152+
# db: ${env:POSTGRES_DB}
153+
# sslmode: require
154+
155+
156+
telemetry:
157+
logging:
158+
# debug, info, warn, error
159+
level: ${env:TELEMETRY_LOGGING_LEVEL}
160+
encoding: ${env:TELEMETRY_LOGGING_ENCODING}
161+
162+
163+
tools:
164+
directors:
165+
- id: default
166+
enabled: true
167+
max_tools: 64
168+
workers:
169+
- id: worker
170+
enabled: true
171+
http:
172+
uri: ${env:ARCADE_WORKER_URI}
173+
timeout: 30
174+
retry: 3
175+
secret: ${env:ARCADE_WORKER_SECRET}

0 commit comments

Comments
 (0)