守矢諏訪子 0113c2a24c | ||
---|---|---|
views | ||
www | ||
.gitignore | ||
LICENSE.txt | ||
README.md | ||
config.php |
README.md
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 に移転されます。