Compare commits
10 commits
3ec87d2c25
...
6ffba1e51f
Author | SHA1 | Date | |
---|---|---|---|
6ffba1e51f | |||
7421b69383 | |||
9c2babedcb | |||
28ea31cf7a | |||
05843d3766 | |||
da8d953d14 | |||
7722e09a86 | |||
f0124ba60a | |||
a6b885dca2 | |||
4e6fa02801 |
7 changed files with 47 additions and 3 deletions
|
@ -3,8 +3,8 @@
|
||||||
3. スマート階層型キャッシュトポロジーを有効にする
|
3. スマート階層型キャッシュトポロジーを有効にする
|
||||||
4. キャッシュルールで同一ホスト名のすべてをキャッシュする
|
4. キャッシュルールで同一ホスト名のすべてをキャッシュする
|
||||||
5. キャッシュルールでAPIをキャッシュしない
|
5. キャッシュルールでAPIをキャッシュしない
|
||||||
6. 構成ルールでAPIを保護する
|
6. 構成ルールで(投稿や削除の)APIを保護する
|
||||||
7. 構成ルールでトップページや操作画面で保護を解除できるようにする
|
7. 構成ルールでトップページや(投稿や削除の)操作画面で保護を解除できるようにする
|
||||||
8. 構成ルールでAS15169とAS8075を限定的に許可してインデックスを有効にする
|
8. 構成ルールでAS15169とAS8075を限定的に許可して検索エンジンのインデックスを有効にする
|
||||||
9. リダイレクトルールは使用しない
|
9. リダイレクトルールは使用しない
|
||||||
10. ページルールは使用しない
|
10. ページルールは使用しない
|
||||||
|
|
2
Dockerをインストール.txt
Normal file
2
Dockerをインストール.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
curl -fsSL https://get.docker.com/ -o install-docker.sh
|
||||||
|
sh install-docker.sh
|
3
Gitのユーザー設定.txt
Normal file
3
Gitのユーザー設定.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
git config --global user.name yuuki
|
||||||
|
git config --global user.email "<>"
|
||||||
|
git config --global credential.helper store
|
9
Macブラウザリセット.txt
Normal file
9
Macブラウザリセット.txt
Normal file
|
@ -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
|
2
Vercelのやったほうがいい設定.txt
Normal file
2
Vercelのやったほうがいい設定.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
1. 「Settings→General→Node.js Version」で「18.x」を選択←Pythonのサーバーレスが動かないので
|
||||||
|
2. 「Settings→Functions→Function Region」で「hnd1」を選択←hnd1=東京
|
8
外部サービス.txt
Normal file
8
外部サービス.txt
Normal file
|
@ -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
|
20
太鼓ウェブのデータベース.txt
Normal file
20
太鼓ウェブのデータベース.txt
Normal file
|
@ -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 <bot@example.com>" -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
|
Loading…
Add table
Reference in a new issue