项目作者: safeurl

项目描述 :
spam safe url shortener
高级语言: HTML
项目地址: git://github.com/safeurl/u.git
创建时间: 2020-12-19T22:38:44Z
项目社区:https://github.com/safeurl/u

开源协议:MIT License

下载



okurl image




okurl.in


MIT License badge Github Issues badge

You can learn more about the service here.

local development

  1. export PORT=3000
  2. export CAPTCHA_SECRET=XXX
  3. export REDIS_URL=redis://127.0.0.1:6379
  4. stack build && stack exec safeurl

useful commands

Setup testing captcha keys

acme.sh deploy BuyPass.com CA

  1. # issue cert
  2. acme.sh --server https://api.buypass.com/acme/directory --issue -d okurl.in -d www.okurl.in -w /home/ravi/wwwroot/okurl.in --days 170 --nginx
  3. # install cert
  4. acme.sh --install-cert -d okurl.in -d www.okurl.in --cert-file /etc/nginx/certs/okurl/cert --key-file /etc/nginx/certs/okurl/key --fullchain-file /etc/nginx/certs/okurl/fullchain --reloadcmd "systemctl reload nginx.service"