docs: 📑 fewer emojis and badges

This commit is contained in:
naskya 2024-02-15 15:15:55 +09:00
parent 205ee8ae0c
commit 37a9a6e155
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
5 changed files with 52 additions and 82 deletions

126
README.md
View file

@ -3,49 +3,19 @@
**🌎 Firefish is an open source, decentralized social media platform that's free forever! 🚀**
[![no github badge](https://nogithub.codeberg.page/badge.svg)](https://nogithub.codeberg.page/)
<!-- [![status badge](https://ci.codeberg.org/api/badges/firefish/firefish/status.svg)](https://ci.codeberg.org/firefish/firefish) -->
[![opencollective badge](https://opencollective.com/firefish/tiers/badge.svg)](https://opencollective.com/Firefish)
[![liberapay badge](https://img.shields.io/liberapay/receives/ThatOneCalculator?logo=liberapay)](https://liberapay.com/ThatOneCalculator)
[![translate-badge](https://hosted.weblate.org/widgets/firefish/-/svg-badge.svg)](https://hosted.weblate.org/engage/firefish/)
<!-- [![docker badge](https://img.shields.io/docker/pulls/thatonecalculator/firefish?logo=docker)](https://hub.docker.com/r/thatonecalculator/firefish) -->
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](./CODE_OF_CONDUCT.md)
</div>
<div>
<img src="./animated.svg" align="right" height="320px"/>
# ✨ About Firefish
- Firefish is based off of Misskey, a powerful microblogging server on ActivityPub with features such as emoji reactions, a customizable web UI, rich chatting, and much more!
- Firefish adds many quality of life changes and bug fixes for users and server admins alike.
- Notable differences:
- Improved UI/UX (especially on mobile)
- Post editing
- Content importing
- Improved notifications
- Improved server security
- Improved accessibility
- Improved threads
- Recommended Servers timeline
- OCR image captioning
- New and improved Groups
- Better intro tutorial
- Compatibility with Mastodon clients/apps
- Backfill user information
- Advanced search
- Many more user and admin settings
- Many bug fixes and performance improvements
- Link verification
- So much more!
Firefish is based off of Misskey, a powerful microblogging server on ActivityPub with features such as emoji reactions, a customizable web UI, rich chatting, and much more!
</div>
<div style="clear: both;"></div>
# 🥂 Links
# Links
### Want to get involved? Great!
@ -55,58 +25,58 @@
### Links
- 💸 Donations:
- Donations:
- OpenCollective: <https://opencollective.com/Firefish>
- 💁 Matrix space: <https://matrix.to/#/#firefish-community:nitro.chat>
- 📣 Official account: <a href="https://info.firefish.dev/@firefish" rel="me">`@firefish@info.firefish.dev`</a>
- ✍️ Weblate: <https://hosted.weblate.org/engage/firefish/>
- Matrix space: <https://matrix.to/#/#firefish-community:nitro.chat>
- Official account: <a href="https://info.firefish.dev/@firefish" rel="me">`@firefish@info.firefish.dev`</a>
- Weblate: <https://hosted.weblate.org/engage/firefish/>
# 🌠 Getting started
# Getting started
This guide will work for both **starting from scratch** and **migrating from Misskey**.
## 🔰 Easy installers
<!-- ## Easy installers
If you have access to a server that supports one of the sources below, I recommend you use it! Note that these methods *won't* allow you to migrate from Misskey without manual intervention.
[![Install on Ubuntu](https://pool.jortage.com/voringme/misskey/3b62a443-1b44-45cf-8f9e-f1c588f803ed.png)](https://firefish.dev/firefish/ubuntu-bash-install)  [![Install on the Arch User Repository](https://pool.jortage.com/voringme/misskey/ba2a5c07-f078-43f1-8483-2e01acca9c40.png)](https://aur.archlinux.org/packages/firefish)  [![Install Firefish with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=firefish)
[![Install on Ubuntu](https://pool.jortage.com/voringme/misskey/3b62a443-1b44-45cf-8f9e-f1c588f803ed.png)](https://firefish.dev/firefish/ubuntu-bash-install)  [![Install on the Arch User Repository](https://pool.jortage.com/voringme/misskey/ba2a5c07-f078-43f1-8483-2e01acca9c40.png)](https://aur.archlinux.org/packages/firefish)  [![Install Firefish with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=firefish) -->
## 🛳️ Containerization
## Containerization
- [🐳 How to run Firefish with Docker](https://firefish.dev/firefish/firefish/-/blob/develop/docs/docker.md)
- [🛞 How to run Firefish with Kubernetes/Helm](https://firefish.dev/firefish/firefish/-/blob/develop/docs/kubernetes.md)
- [How to run Firefish with Docker](https://firefish.dev/firefish/firefish/-/blob/develop/docs/docker.md)
- [How to run Firefish with Kubernetes/Helm](https://firefish.dev/firefish/firefish/-/blob/develop/docs/kubernetes.md)
## 🧑‍💻 Dependencies
## Dependencies
- 🐢 At least [NodeJS](https://nodejs.org/en/) v18.16.0 (v20 recommended)
- 🐘 At least [PostgreSQL](https://www.postgresql.org/) v12 (v14 recommended)
- 🍱 At least [Redis](https://redis.io/) v7
- At least [NodeJS](https://nodejs.org/en/) v18.16.0 (v20/v21 recommended)
- At least [PostgreSQL](https://www.postgresql.org/) v12 (v16 recommended)
- At least [Redis](https://redis.io/) v7
- Web Proxy (one of the following)
- 🍀 Nginx (recommended)
- 🦦 Caddy (recommended)
- 🪶 Apache
- Nginx (recommended)
- Caddy (recommended)
- Apache
### 😗 Optional dependencies
### Optional dependencies
- [FFmpeg](https://ffmpeg.org/) for video transcoding
- Full text search (one of the following)
- 🦔 [Sonic](https://crates.io/crates/sonic-server)
- [Sonic](https://crates.io/crates/sonic-server)
- [MeiliSearch](https://www.meilisearch.com/)
- [ElasticSearch](https://www.elastic.co/elasticsearch/)
- Caching server (one of the following)
- 🐲 [DragonflyDB](https://www.dragonflydb.io/) (recommended)
- 👻 [KeyDB](https://keydb.dev/)
- 🍱 Another [Redis](https://redis.io/) server
- [DragonflyDB](https://www.dragonflydb.io/) (recommended)
- [KeyDB](https://keydb.dev/)
- Another [Redis](https://redis.io/) server
### 🏗️ Build dependencies
### Build dependencies
- 🦀 At least [Rust](https://www.rust-lang.org/) v1.74
- 🦬 C/C++ compiler & build tools
- At least [Rust](https://www.rust-lang.org/) v1.74
- C/C++ compiler & build tools
- `build-essential` on Debian/Ubuntu Linux
- `base-devel` on Arch Linux
- 🐍 [Python 3](https://www.python.org/)
- [Python 3](https://www.python.org/)
## 👀 Get folder ready
## Get folder ready
```sh
git clone https://firefish.dev/firefish/firefish.git
@ -114,16 +84,15 @@ cd firefish/
```
> **Note**
> By default, you're on the develop branch. Run `git checkout main` or `git checkout beta` to switch to the Main/Beta branches.
> By default, you're on the develop branch. Run `git checkout main` to switch to the Main branch.
## 📩 Install dependencies
## Install dependencies
```sh
# nvm install 19 && nvm use 19
corepack enable
sudo corepack enable
corepack prepare pnpm@latest --activate
# To build without TensorFlow, append --no-optional
pnpm i # --no-optional
pnpm install --frozen-lockfile
```
### pm2
@ -138,7 +107,7 @@ pm2 install pm2-logrotate
> **Note**
> [`pm2-logrotate`](https://github.com/keymetrics/pm2-logrotate/blob/master/README.md) ensures that log files don't infinitely gather size, as Firefish produces a lot of logs.
## 🐘 Create database
## Create database
In PostgreSQL (`psql`), run the following command:
@ -154,13 +123,13 @@ psql postgres -c "create database firefish with encoding = 'UTF8';"
In Firefish's directory, fill out the `db` section of `.config/default.yml` with the correct information, where the `db` key is `firefish`.
## 💰 Caching server
## Caching server
If you experience a lot of traffic, it's a good idea to set up another Redis-compatible caching server. If you don't set one one up, it'll fall back to the mandatory Redis server. DragonflyDB is the recommended option due to its unrivaled performance and ease of use.
## 🔎 Set up search
## Set up search
### 🦔 Sonic
### Sonic
Sonic is better suited for self hosters with smaller deployments. It uses almost no resources, barely any any disk space, and is relatively fast.
@ -183,7 +152,7 @@ In Firefish's directory, fill out the `meilisearch` section of `.config/default.
Please don't use ElasticSearch unless you already have an ElasticSearch setup and want to continue using it for Firefish. ElasticSearch is slow, heavy, and offers very few benefits over Sonic/Meilisearch.
## 💅 Customize
## Customize
- To add custom CSS for all users, edit `./custom/assets/instance.css`.
- To add static assets (such as images for the splash screen), place them in the `./custom/assets/` directory. They'll then be available on `https://yourserver.tld/static-assets/filename.ext`.
@ -193,26 +162,26 @@ Please don't use ElasticSearch unless you already have an ElasticSearch setup an
- To update custom assets without rebuilding, just run `pnpm run gulp`.
- To block ChatGPT, CommonCrawl, or other crawlers from indexing your instance, uncomment the respective rules in `./custom/robots.txt`.
## 🧑‍🔬 Configuring a new server
## Configuring a new server
- Run `cp .config/example.yml .config/default.yml`
- Edit `.config/default.yml`, making sure to fill out required fields.
- Also copy and edit `.config/docker_example.env` to `.config/docker.env` if you're using Docker.
## 🚚 Migrating from Misskey/FoundKey to Firefish
## Migrating from Misskey/FoundKey to Firefish
For migrating from Misskey v13, Misskey v12, and FoundKey, read [this document](https://firefish.dev/firefish/firefish/-/blob/develop/docs/migrate.md).
## 🌐 Web proxy
## Web proxy
### 🍀 Nginx (recommended)
### Nginx (recommended)
- Run `sudo cp ./firefish.nginx.conf /etc/nginx/sites-available/ && cd /etc/nginx/sites-available/`
- Edit `firefish.nginx.conf` to reflect your server properly
- Run `sudo ln -s ./firefish.nginx.conf ../sites-enabled/firefish.nginx.conf`
- Run `sudo nginx -t` to validate that the config is valid, then restart the NGINX service.
### 🦦 Caddy (recommended)
### Caddy (recommended)
- Add the following block to your `Caddyfile`, replacing `example.tld` with your own domain:
```caddy
@ -222,7 +191,7 @@ example.tld {
```
- Reload your caddy configuration
### 🪶 Apache
### Apache
> **Warning**
> Apache has some known problems with Firefish. Only use it if you have to.
@ -231,9 +200,10 @@ example.tld {
- Edit `firefish.apache.conf` to reflect your server properly
- Run `sudo a2ensite firefish.apache` to enable the site
- Run `sudo service apache2 restart` to reload apache2 configuration
## 🚀 Build and launch!
### 🐢 NodeJS + pm2
## Build and launch!
### NodeJS + pm2
#### `git pull` and run these steps to update Firefish in the future!
@ -244,7 +214,7 @@ NODE_ENV=production pnpm run build && pnpm run migrate
pm2 start "NODE_ENV=production pnpm run start" --name Firefish
```
## 😉 Tips & Tricks
## Tips & Tricks
- 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.

View file

@ -1,4 +1,4 @@
# 🌎 Firefish Developer Docs
# Firefish Developer Docs
## Nix Dev Environment
The Firefish repo comes with a Nix-based shell environment to help make development as easy as possible!

View file

@ -1,4 +1,4 @@
# 🐳 Running a Firefish server with Docker
# Running a Firefish server with Docker
## Pre-built docker container
[registry.firefish.dev/firefish/firefish](https://firefish.dev/firefish/firefish/container_registry)

View file

@ -1,4 +1,4 @@
# 🚚 Migrating from Misskey/FoundKey to Firefish
# Migrating from Misskey/FoundKey to Firefish
All the guides below assume you're starting in the root of the repo directory.

View file

@ -1,4 +1,4 @@
# 📦 Packages
# Packages
This directory contains all of the packages Firefish uses.