You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
テクニカル諏訪子 8f6cf7aa6f Go言語になりました 2 months ago
lang 更新 7 months ago
views echo短縮 7 months ago
www 更新 7 months ago
.gitignore 変更 11 months ago
LICENSE.txt GPLv2 8 months ago
README.md Go言語になりました 2 months ago
config.php 更新 7 months ago
logo.jpg 更新 10 months ago

README.md

Go言語で再創作しましたので、PHP版の対応は終了にしました。 こちらまでご覧下さい。

URLロリ

クッソ小さいURL短縮作成ソフトだわ〜♡

使い方

cp links.sample.json links.json
nvim links.json

nginxのコンフィグで

  location / {
    add_header Permissions-Policy interest-cohort=();
    rewrite ^/(.+)$ /index.php?url=$1 last;
    try_files $uri $uri/ /404.html;
  }

links.jsonファイルの中に

{
  "hogehoge": "https://076.moe"
}

https://(ドメイン名)/hogehoge にアクセスすると、https://076.moe に移転されます。

APIの使い方

短縮URLの創作

METHOD: POST
URL: https://urlo.li
PARAM: {
  sosin: 1
  api: 1
  newurl: "(元URL)"
}

OUT: { "res": "(5英文字)" }

短縮したURLの確認

METHOD: GET
URL: https://urlo.li/kk1v9?api=1
OUT: { "res": "https://076.moe" }