diff --git a/docker-compose.yml b/docker-compose.yml index 2d0c381..f79e0c5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: - HCAPTCHA_SITEKEY= - CAPTCHA_COOKIE_SECRET= - POW_COOKIE_SECRET= + - RAY_ID= nginx: image: "nginx:latest" volumes: diff --git a/src/scripts/hcaptcha.lua b/src/scripts/hcaptcha.lua index e7ab16d..65ad42a 100644 --- a/src/scripts/hcaptcha.lua +++ b/src/scripts/hcaptcha.lua @@ -11,6 +11,7 @@ local captcha_secret = os.getenv("HCAPTCHA_SECRET") local captcha_sitekey = os.getenv("HCAPTCHA_SITEKEY") local hcaptcha_cookie_secret = os.getenv("CAPTCHA_COOKIE_SECRET") local pow_cookie_secret = os.getenv("POW_COOKIE_SECRET") +local ray_id = os.getenv("RAY_ID") local captcha_provider_domain = "hcaptcha.com" @@ -37,7 +38,7 @@ local body_template = [[ body,html{height:100%%} body{display:flex;flex-direction:column;background-color:var(--bg-color);color:var(--text-color);font-family:Helvetica,Arial,sans-serif;text-align:center;margin:0} h3,p{margin:3px} - footer{font-size:small;margin-top:auto;margin-bottom:50px}h3{padding-top:25vh} + footer{font-size:small;margin-top:auto;margin-bottom:50px}h3{padding-top:30vh}