-- Pull in the Traffic Server API. local TS = require 'ts' require 'string' local enable_hsts = true -- SSL check function check_hsts(request) -- Check if we're on HTTPS url = request:url() if url.scheme == "https" then TS.debug('lua_x_fwd_proto', "Sending X-Forwarded-Proto header") request.headers['X-Forwarded-Proto'] = "https" end end