master
Thomas Lynch 2 years ago
parent 2b0b15781e
commit 727bca1623
Signed by: fatchan
GPG Key ID: 112884AA57DF40B1
  1. 1
      docker-compose.yml
  2. 4
      src/libs/utils.lua

@ -23,6 +23,7 @@ services:
- CAPTCHA_COOKIE_SECRET=
- POW_COOKIE_SECRET=
- RAY_ID=
- BUCKET_DURATION=43200
nginx:
image: "nginx:latest"
volumes:

@ -1,8 +1,8 @@
local _M = {}
local sha = require("sha")
local secret_bucket_duration = 43200 -- 60 * 60 * 12 -- 12 hours
require("print_r")
local secret_bucket_duration = tonumber(os.getenv("BUCKET_DURATION"))
function _M.generate_secret(context, salt, is_applet, iterations)
local start_sec = core.now()['sec']
local bucket = start_sec - (start_sec % secret_bucket_duration)

Loading…
Cancel
Save