This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Optional alias for S3 (e.g. to serve files on a custom domain, possibly using Cloudfront or Cloudflare) | |
S3_CLOUDFRONT_HOST=media.mydomain.com ←ここに自分の設定した Cloudflare の CNAME 入れる | |
ちなみに | |
S3_ALIAS_HOSTNAME=media.mydomain.com ←最新の.env.productionにはこう書かれててこれでもいける。これのほうが良いかも。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CORSConfiguration> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
</CORSRule> | |
</CORSConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#いつものごとくMastodonを一旦止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#リリースノートに書いてある Node.js 8 を入れる | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
sudo apt update && sudo apt install nodejs | |
#リリースノートに書いてある nginx のサイズを上げる | |
nano /etc/nginx/sites-available/example.com.conf | |
↑この場所は各自設置しているファイルの場所を指定 |
NewerOlder