This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Template | |
metadata: | |
name: minio | |
parameters: | |
- name: MEMORY_LIMIT | |
displayName: Memory Limit | |
description: Maximum amount of memory available for the container. | |
value: 256Mi | |
required: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local _M = {} | |
function _M.run () | |
-- grab auth header | |
local auth_header = ngx.req.get_headers().authorization | |
local hWWWAuth = string.format('Basic realm="%s"', os.getenv("CROWD_REALM_NAME")) | |
-- check that the header is present, and if not sead authenticate header | |
if not auth_header or auth_header == '' or not string.match(auth_header, '^[Bb]asic ') then | |
ngx.log(ngx.DEBUG, string.format("no auth header provided --> basic realm set to: %s", hWWWAuth)) |