Skip to content

Commit 5c77271

Browse files
committed
fix-lua
1 parent 5480fd4 commit 5c77271

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
apiVersion: v2
33
name: synapse
44
description: matrix synapse kubernetes deployment
5-
version: 2.0.5
5+
version: 2.0.6
66
appVersion: 1.149.1

charts/synapse/scripts/envoy.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ static_resources:
324324
source_codes:
325325
whoami_hash:
326326
inline_string: |
327-
local synapse = require("lib.synapse")
327+
package.path = package.path .. ";/usr/lib/?.lua"
328+
local synapse = require("synapse")
328329
329330
function envoy_on_request(request_handle)
330331
local hash_key = synapse.get_user_identifier_from_request(request_handle, {
@@ -346,7 +347,8 @@ static_resources:
346347
end
347348
room_hash:
348349
inline_string: |
349-
local synapse = require("lib.synapse")
350+
package.path = package.path .. ";/usr/lib/?.lua"
351+
local synapse = require("synapse")
350352
351353
function envoy_on_request(request_handle)
352354
local headers = request_handle:headers()

charts/synapse/templates/envoy-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ spec:
5353
mountPath: /config/envoy.yaml
5454
subPath: envoy.yaml
5555
- name: config
56-
mountPath: /usr/lib/lib/synapse.lua
56+
mountPath: /usr/lib/synapse.lua
5757
subPath: synapse.lua
5858
{{- if .Values.envoyProxy.nodeSelector }}
5959
nodeSelector:

0 commit comments

Comments
 (0)