Misskey部署与使用
1.Get the repository
git clone -b master https://github.com/misskey-dev/misskey.git misskey
cd misskey
git checkout master
2.Configure
Copy example configuration files with following:
cp .config/docker_example.yml .config/default.yml
cp .config/docker_example.env .config/docker.env
cp ./docker-compose.yml.example ./docker-compose.yml
Edit default.yml
and docker.env
according to the instructions in the files.
default.yml
修改
url: https://example.tld/
user: example-misskey-user
pass: example-misskey-pass
#和下边对应,是数据库的用户名、密码,与登录密码无关,管理员密码首次登入时设置
docker.env
修改
POSTGRES_PASSWORD=example-misskey-pass
POSTGRES_USER=example-misskey-user
Edit docker-compose.yml
if necessary. (e.g. if you want to change the port).
修改端口号
3.Build and initialize
The following command will build Misskey and initialize the database. This will take some time.
sudo docker compose build
sudo docker compose run --rm web pnpm run init
4.闭坑
To ensure you can upload files to Misskey, you need to take ownership of the files directory with:
sudo chown -hR 991.991 ./files
If you fail to do this, you'll see an internal error message with code 5d37dbcb-891e-41ca-a3d6-e690c97775ac when you attempt to add any images.
5.Launch
Well done! You can start Misskey with the following command.
sudo docker compose up -d
控制面板-安全
Turnstile设置:
Cloudflare用户需在后台菜单栏“Turnstile[beta]”,点击“Add Site”,填入Site name,选择站点域名,点击”Create“,则新建了一个站点,重要的key有两个,客户端“Site Key”以及服务端“Secret Key”,记下这两个key。