mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 06:15:36 -04:00
16 lines
585 B
Text
16 lines
585 B
Text
# Test nginx configuration file with multiline quoted strings.
|
|
# Good example of usage for multilined quoted values is when
|
|
# using Openresty's Lua directives and you wish to keep the
|
|
# inline Lua code readable.
|
|
http {
|
|
server {
|
|
listen *:443; # because there should be no other port open.
|
|
|
|
location / {
|
|
body_filter_by_lua 'ngx.ctx.buffered = (ngx.ctx.buffered or "") .. string.sub(ngx.arg[1], 1, 1000)
|
|
if ngx.arg[2] then
|
|
ngx.var.resp_body = ngx.ctx.buffered
|
|
end';
|
|
}
|
|
}
|
|
}
|