generated from gatewayd-io/plugin-template-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatewayd_plugin.yaml
30 lines (28 loc) · 1.27 KB
/
gatewayd_plugin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Plugin configuration file for GatewayD
enableMetricsMerger: True
metricsMergerPeriod: 5s
healthCheckPeriod: 5s
reloadOnCrash: True
timeout: 30s
plugins:
# Plugin name
- name: gatewayd-plugin-js
# whether to enable or disable the plugin on the next run
enabled: True
# path to the plugin's binary file
localPath: ../gatewayd-plugin-js/gatewayd-plugin-js
url: github.com/gatewayd-io/gatewayd-plugin-js@latest
# Pass cmdline args to the plugin
args: ["--log-level", "info"]
# Pass environment variables to the plugin
# System-wide environment variables are passed to the plugin normally
# and they can be accessed via os.Environ().
# Defining any environment variables below will override system-wide environment variables.
env:
# The below environment variables are used by the plugin loader to verify the plugin's identity.
- MAGIC_COOKIE_KEY=GATEWAYD_PLUGIN
- MAGIC_COOKIE_VALUE=5712b87aa5d7e9f9e9ab643e6603181c5b796015cb1c09d6f5ada882bf2a1872
- SCRIPT_PATH=./scripts/index.js
- SENTRY_DSN=https://439b580ade4a947cf16e5cfedd18f51f@o4504550475038720.ingest.sentry.io/4506475229413376
# Checksum hash to verify the binary before loading
checksum: dee4aa014a722e1865d91744a4fd310772152467d9c6ab4ba17fd9dd40d3f724