diff --git a/google_cloud/minecraft/main.tf b/google_cloud/minecraft/main.tf index 7de68b3..36275ab 100644 --- a/google_cloud/minecraft/main.tf +++ b/google_cloud/minecraft/main.tf @@ -47,8 +47,8 @@ locals { # through the Cloud Console mobile app or https://console.cloud.google.com # Create a group at https://groups.google.com/forum/#!creategroup # and invite members by their email address. - enable_switch_access_group = 0 # Replace with 1 to enable google group admins - minecraft_switch_access_group = "GROUP_EM@IL_ADDRESS@googlegroups.com" + enable_switch_access_group = 1 # Replace with 1 to enable google group admins + minecraft_switch_access_group = "minecraft-switchers-lark@googlegroups.com" } diff --git a/google_cloud/openresty-beyondcorp/files/default.template.conf b/google_cloud/openresty-beyondcorp/files/default.template.conf index 5635dd1..2f69444 100644 --- a/google_cloud/openresty-beyondcorp/files/default.template.conf +++ b/google_cloud/openresty-beyondcorp/files/default.template.conf @@ -322,7 +322,7 @@ server { local envelope = { messages = { [1] = { - data = b64.encode_base64url(body), + data = ngx.encode_base64(body), attributes = { -- headers = cjson.encode(headers), method = ngx.req.get_method(), @@ -416,14 +416,18 @@ server { local incoming = cjson.decode(ngx.req.get_body_data()) local upstream_url = "${UPSTREAM_URL}" .. incoming.message.attributes.uri local upstream_method = incoming.message.attributes.method - local upstream_body = b64.decode_base64url(incoming.message.data) + local upstream_body = ngx.decode_base64(incoming.message.data) local upstreamtoken = ngx.location.capture('/token').body ngx.log(ngx.WARN, "upstream_url: " .. upstream_url) ngx.log(ngx.WARN, "upstream_method: " .. upstream_method) - -- ngx.log(ngx.WARN, "upstream_body: " .. upstream_body) + if upstream_body ~= nil then + ngx.log(ngx.WARN, "upstream_body: " .. upstream_body) + elseif incoming.message.data ~= nil then + ngx.log(ngx.WARN, "Could not decode incoming.message.data: " .. incoming.message.data) + end ngx.log(ngx.WARN, "upstream_token : " .. upstreamtoken)