Skip to content

Commit d134162

Browse files
committed
Add plugin config
1 parent 8776eae commit d134162

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

gatewayd_plugins.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Plugin configuration file for GatewayD
2+
3+
# Possible values: "passdown" (default), "ignore", "abort" and "remove"
4+
verificationPolicy: "passdown"
5+
# Possible values: "strict" (default) and "loose"
6+
compatibilityPolicy: "strict"
7+
# Possible values: "accept" (default) and "reject"
8+
acceptancePolicy: "accept"
9+
metricsMergerPeriod: 5s
10+
healthCheckPeriod: 5s
11+
12+
plugins:
13+
# Plugin name
14+
- name: plugin-template-python
15+
# whether to enable or disable the plugin on the next run
16+
enabled: True
17+
# path to the plugin's binary file
18+
localPath: poetry
19+
# Pass cmdline args to the plugin
20+
args: ["-C", "../plugin-template-python", "run", "python", "../plugin-template-python/main.py"]
21+
# Pass environment variables to the plugin
22+
# System-wide environment variables are passed to the plugin normally
23+
# and they can be accessed via os.Environ().
24+
# Defining any environment variables below will override system-wide environment variables.
25+
env:
26+
# The below environment variables are used by the plugin loader to verify the plugin's identity.
27+
- MAGIC_COOKIE_KEY=GATEWAYD_PLUGIN
28+
- MAGIC_COOKIE_VALUE=5712b87aa5d7e9f9e9ab643e6603181c5b796015cb1c09d6f5ada882bf2a1872
29+
# Checksum hash to verify the binary before loading
30+
checksum: dee4aa014a722e1865d91744a4fd310772152467d9c6ab4ba17fd9dd40d3f724

0 commit comments

Comments
 (0)