From c446ce11c6ec23d454437a7ffdcc143d166efcd8 Mon Sep 17 00:00:00 2001 From: Essem Date: Sun, 24 Sep 2023 00:48:31 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9D=20Add=20note=20about=20Acc?= =?UTF-8?q?ess-Control-Allow-Origin=20header=20to=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index aad5b4d8b..2926f7a63 100644 --- a/README.md +++ b/README.md @@ -267,6 +267,7 @@ pm2 start "NODE_ENV=production pnpm run start" --name Firefish - When editing the config file, please don't fill out the settings at the bottom. They're designed *only* for managed hosting, not self hosting. Those settings are much better off being set in Firefish's control panel. - Port 3000 (used in the default config) might be already used on your server for something else. To find an open port for Firefish, run `for p in {3000..4000}; do ss -tlnH | tr -s ' ' | cut -d" " -sf4 | grep -q "${p}$" || echo "${p}"; done | head -n 1`. Replace 3000 with the minimum port and 4000 with the maximum port if you need it. - I'd recommend you use a S3 Bucket/CDN for Object Storage, especially if you use Docker. +- When using object storage, setting a proper `Access-Control-Allow-Origin` response header is highly recommended. - I'd ***strongly*** recommend against using CloudFlare, but if you do, make sure to turn code minification off. - For push notifications, run `npx web-push generate-vapid-keys`, then put the public and private keys into Control Panel > General > ServiceWorker. - For translations, make a [DeepL](https://deepl.com) account and generate an API key, then put it into Control Panel > General > DeepL Translation.