diff --git a/Cloudflareのやったほうがいい設定2.txt b/Cloudflareのやったほうがいい設定2.txt index 923ec94..ae5a6dc 100644 --- a/Cloudflareのやったほうがいい設定2.txt +++ b/Cloudflareのやったほうがいい設定2.txt @@ -3,8 +3,8 @@ 3. スマート階層型キャッシュトポロジーを有効にする 4. キャッシュルールで同一ホスト名のすべてをキャッシュする 5. キャッシュルールでAPIをキャッシュしない -6. 構成ルールでAPIを保護する -7. 構成ルールでトップページや操作画面で保護を解除できるようにする -8. 構成ルールでAS15169とAS8075を限定的に許可してインデックスを有効にする +6. 構成ルールで(投稿や削除の)APIを保護する +7. 構成ルールでトップページや(投稿や削除の)操作画面で保護を解除できるようにする +8. 構成ルールでAS15169とAS8075を限定的に許可して検索エンジンのインデックスを有効にする 9. リダイレクトルールは使用しない 10. ページルールは使用しない diff --git a/Dockerをインストール.txt b/Dockerをインストール.txt new file mode 100644 index 0000000..9cc672e --- /dev/null +++ b/Dockerをインストール.txt @@ -0,0 +1,2 @@ +curl -fsSL https://get.docker.com/ -o install-docker.sh +sh install-docker.sh diff --git a/Gitのユーザー設定.txt b/Gitのユーザー設定.txt new file mode 100644 index 0000000..e354ba7 --- /dev/null +++ b/Gitのユーザー設定.txt @@ -0,0 +1,3 @@ +git config --global user.name yuuki +git config --global user.email "<>" +git config --global credential.helper store diff --git a/Macブラウザリセット.txt b/Macブラウザリセット.txt new file mode 100644 index 0000000..f299190 --- /dev/null +++ b/Macブラウザリセット.txt @@ -0,0 +1,9 @@ +# Safari +rm -rf ~/Library/Containers/com.apple.Safari +rm -rf ~/Library/Safari +rm -rf ~/Library/Cookies +rm -rf ~/Library/WebKit + +# Google Chrome +rm -rf ~/Library/Application\ Support/Google/Chrome +rm -rf ~/Library/Caches/Google/Chrome diff --git a/Vercelのやったほうがいい設定.txt b/Vercelのやったほうがいい設定.txt new file mode 100644 index 0000000..43b56e8 --- /dev/null +++ b/Vercelのやったほうがいい設定.txt @@ -0,0 +1,2 @@ +1. 「Settings→General→Node.js Version」で「18.x」を選択←Pythonのサーバーレスが動かないので +2. 「Settings→Functions→Function Region」で「hnd1」を選択←hnd1=東京 diff --git a/外部サービス.txt b/外部サービス.txt new file mode 100644 index 0000000..e643dfa --- /dev/null +++ b/外部サービス.txt @@ -0,0 +1,8 @@ +Freenom +Cloudflare +Vultr +MongoDB Atlas +GitHub: https://github.com/yuukiwww +Codeberg: https://codeberg.org/yuukixyz +Gitea: https://gittea.dev/yuuki +Vercel diff --git a/太鼓ウェブのデータベース.txt b/太鼓ウェブのデータベース.txt new file mode 100644 index 0000000..f5d96ef --- /dev/null +++ b/太鼓ウェブのデータベース.txt @@ -0,0 +1,20 @@ +エクスポート + +$ docker exec -i taiko-mongo mongoexport --db taiko --collection users --out /dev/stdout | sort -n > users.json +$ docker exec -i taiko-mongo mongoexport --db taiko --collection songs --out /dev/stdout | sort -n > songs.json +$ docker exec -i taiko-mongo mongoexport --db taiko --collection scores --out /dev/stdout | sort -n > scores.json + +コミット&プッシュ + +$ git add *.json +$ git commit --author="BOT " -m "$(git diff --name-only --cached | paste -s -d ' ') が更新されました" +$ git push origin main + +インポート + +$ docker cp users.json taiko-mongo:/a +$ docker exec -i taiko-mongo mongoimport --db taiko --collection users /a +$ docker cp songs.json taiko-mongo:/b +$ docker exec -i taiko-mongo mongoimport --db taiko --collection songs /b +$ docker cp scores.json taiko-mongo:/c +$ docker exec -i taiko-mongo mongoimport --db taiko --collection scores /c