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.
|
2 months ago | |
---|---|---|
lang | 7 months ago | |
views | 7 months ago | |
www | 7 months ago | |
.gitignore | 11 months ago | |
LICENSE.txt | 8 months ago | |
README.md | 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" }