This repository was archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgatewayd_plugin.yaml
More file actions
37 lines (36 loc) · 1.55 KB
/
gatewayd_plugin.yaml
File metadata and controls
37 lines (36 loc) · 1.55 KB
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
31
32
33
34
35
36
37
# Plugin configuration file for GatewayD
compatibilityPolicy: "strict"
enableMetricsMerger: True
metricsMergerPeriod: 5s
healthCheckPeriod: 5s
reloadOnCrash: True
timeout: 30s
startTimeout: 1m
policyTimeout: 30s
policies: []
plugins:
# Plugin name
- name: plugin-template-go
# whether to enable or disable the plugin on the next run
enabled: True
# path to the plugin's binary file
localPath: ../plugin-template-go/plugin-template-go
# url for downloading the plugin, must be a GitHub URL
# The `plugin install` command will look for this url to download and install the plugin
# The version is either "latest" or a tagged version of the plugin, like "v0.2.9"
url: github.com/gatewayd-io/plugin-template-go@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
- METRICS_ENABLED=True
- METRICS_UNIX_DOMAIN_SOCKET=/tmp/plugin-template-go.sock
- METRICS_PATH=/metrics
# Checksum hash to verify the binary before loading
checksum: dee4aa014a722e1865d91744a4fd310772152467d9c6ab4ba17fd9dd40d3f724