@@ -63,21 +63,19 @@ timeout: 30s
63
63
# use when connecting to the database. The DEFAULT_DB_NAME environment variable is optional
64
64
# and should only be used if one only has a single database in their PostgreSQL instance.
65
65
plugins :
66
- - name : gatewayd-plugin-cache
66
+ - name : plugin-template-python
67
+ # whether to enable or disable the plugin on the next run
67
68
enabled : True
68
- localPath : ../gatewayd-plugin-cache/gatewayd-plugin-cache
69
- args : ["--log-level", "debug"]
69
+ # path to the plugin's binary file
70
+ localPath : poetry
71
+ args : ["-C", "../plugin-template-python", "run", "python", "../plugin-template-python/main.py"]
72
+ # Pass environment variables to the plugin
73
+ # System-wide environment variables are passed to the plugin normally
74
+ # and they can be accessed via os.Environ().
75
+ # Defining any environment variables below will override system-wide environment variables.
70
76
env :
77
+ # The below environment variables are used by the plugin loader to verify the plugin's identity.
71
78
- MAGIC_COOKIE_KEY=GATEWAYD_PLUGIN
72
79
- MAGIC_COOKIE_VALUE=5712b87aa5d7e9f9e9ab643e6603181c5b796015cb1c09d6f5ada882bf2a1872
73
- - REDIS_URL=redis://localhost:6379/0
74
- - EXPIRY=1h
75
- # - DEFAULT_DB_NAME=postgres
76
- - METRICS_ENABLED=True
77
- - METRICS_UNIX_DOMAIN_SOCKET=/tmp/gatewayd-plugin-cache.sock
78
- - METRICS_PATH=/metrics
79
- - PERIODIC_INVALIDATOR_ENABLED=True
80
- - PERIODIC_INVALIDATOR_INTERVAL=1m
81
- - PERIODIC_INVALIDATOR_START_DELAY=1m
82
- - API_ADDRESS=localhost:18080
83
- checksum : 28456728dd3427b91d2e22f38b909526355d1b2becc9379581e1b70bb9495aa9
80
+ # Checksum hash to verify the binary before loading
81
+ checksum : dee4aa014a722e1865d91744a4fd310772152467d9c6ab4ba17fd9dd40d3f724
0 commit comments