edit sharkey-dfdb, add sharkey configs
This commit is contained in:
parent
ad6ee52f9d
commit
2b985757c7
6 changed files with 96 additions and 1 deletions
38
beeper/etc/caddy/sites-enabled/sharkey
Normal file
38
beeper/etc/caddy/sites-enabled/sharkey
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
*.sharkeyeyeyeyey.beeper.synth.download {
|
||||||
|
handle /.well-known/atproto-did {
|
||||||
|
rewrite * /.well-known/atproto-did?protocol=ap&id=%40{http.request.host.labels.3}%40booping.synth.download
|
||||||
|
|
||||||
|
reverse_proxy https://fed.brid.gy {
|
||||||
|
header_up Host fed.brid.gy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sharkeyeyeyeyey.beeper.synth.download {
|
||||||
|
@activity_pub `header({'Content-Type': 'application/activity+json*'}) || header({'Content-Type': 'application/ld+json*'}) || header({'Accept': 'application/activity+json*'}) || header({'Accept': 'application/ld+json*'})`
|
||||||
|
|
||||||
|
route {
|
||||||
|
# activitypub service
|
||||||
|
reverse_proxy @activity_pub http://127.0.0.1:47815
|
||||||
|
reverse_proxy /api/admin/federation/refresh-remote-instance-metadata http://127.0.0.1:47815
|
||||||
|
reverse_proxy /api/notes/polls/refresh http://127.0.0.1:47815
|
||||||
|
reverse_proxy /api/federation/update-remote-user http://127.0.0.1:47815
|
||||||
|
reverse_proxy /api/ap/get http://127.0.0.1:47815
|
||||||
|
reverse_proxy /api/ap/show http://127.0.0.1:47815
|
||||||
|
|
||||||
|
# media service
|
||||||
|
reverse_proxy /files/* http://127.0.0.1:57378
|
||||||
|
reverse_proxy /emoji/* http://127.0.0.1:57378
|
||||||
|
reverse_proxy /avatar/* http://127.0.0.1:57378
|
||||||
|
reverse_proxy /url http://127.0.0.1:57378
|
||||||
|
reverse_proxy /twemoji-badge/* http://127.0.0.1:57378
|
||||||
|
reverse_proxy /identicon/* http://127.0.0.1:57378
|
||||||
|
|
||||||
|
# api + web frontend (+ general fallback)
|
||||||
|
reverse_proxy http://127.0.0.1:60628
|
||||||
|
}
|
||||||
|
|
||||||
|
import common-settings
|
||||||
|
import log sharkey
|
||||||
|
import robots-txt
|
||||||
|
}
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
Description=Sharkey's DragonflyDB process
|
Description=Sharkey's DragonflyDB process
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
Image=docker.dragonflydb.io/dragonflydb/dragonfly
|
||||||
ContainerName=sharkey-dfdb
|
ContainerName=sharkey-dfdb
|
||||||
Environment=DFLY_snapshot_cron="* * * * *"
|
Environment=DFLY_snapshot_cron="* * * * *"
|
||||||
Environment=DFLY_version_check=false
|
Environment=DFLY_version_check=false
|
||||||
|
|
@ -9,7 +10,9 @@ Environment=DFLY_default_lua_flags=allow-undeclared-keys
|
||||||
Environment=DFLY_dbfilename=dump.rdb
|
Environment=DFLY_dbfilename=dump.rdb
|
||||||
Environment=DFLY_df_snapshot_format=false
|
Environment=DFLY_df_snapshot_format=false
|
||||||
Environment=DFLY_dir=/data
|
Environment=DFLY_dir=/data
|
||||||
Image=docker.dragonflydb.io/dragonflydb/dragonfly
|
HealthCmd=redis-cli ping
|
||||||
|
HealthInterval=5s
|
||||||
|
HealthRetries=20
|
||||||
Network=sharkey.network
|
Network=sharkey.network
|
||||||
Volume=/var/containers/sharkey/dfdb:/data:z
|
Volume=/var/containers/sharkey/dfdb:/data:z
|
||||||
|
|
||||||
|
|
|
||||||
12
beeper/var/containers/sharkey/activity/sharkey-activity.yml
Normal file
12
beeper/var/containers/sharkey/activity/sharkey-activity.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# The port that your Misskey server should listen on.
|
||||||
|
port: 3002
|
||||||
|
|
||||||
|
# Job concurrency per worker
|
||||||
|
deliverJobConcurrency: 0
|
||||||
|
inboxJobConcurrency: 0
|
||||||
|
relationshipJobConcurrency: 0
|
||||||
|
|
||||||
|
# Job rate limiter
|
||||||
|
deliverJobPerSec: 0
|
||||||
|
inboxJobPerSec: 0
|
||||||
|
relationshipJobPerSec: 0
|
||||||
12
beeper/var/containers/sharkey/api/sharkey-api.yml
Normal file
12
beeper/var/containers/sharkey/api/sharkey-api.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# The port that your Misskey server should listen on.
|
||||||
|
port: 3001
|
||||||
|
|
||||||
|
# Job concurrency per worker
|
||||||
|
deliverJobConcurrency: 0
|
||||||
|
inboxJobConcurrency: 0
|
||||||
|
relationshipJobConcurrency: 0
|
||||||
|
|
||||||
|
# Job rate limiter
|
||||||
|
deliverJobPerSec: 0
|
||||||
|
inboxJobPerSec: 0
|
||||||
|
relationshipJobPerSec: 0
|
||||||
12
beeper/var/containers/sharkey/media/sharkey-media.yml
Normal file
12
beeper/var/containers/sharkey/media/sharkey-media.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# The port that your Misskey server should listen on.
|
||||||
|
port: 3003
|
||||||
|
|
||||||
|
# Job concurrency per worker
|
||||||
|
deliverJobConcurrency: 0
|
||||||
|
inboxJobConcurrency: 0
|
||||||
|
relationshipJobConcurrency: 0
|
||||||
|
|
||||||
|
# Job rate limiter
|
||||||
|
deliverJobPerSec: 0
|
||||||
|
inboxJobPerSec: 0
|
||||||
|
relationshipJobPerSec: 0
|
||||||
18
beeper/var/containers/sharkey/worker/sharkey-worker.yml
Normal file
18
beeper/var/containers/sharkey/worker/sharkey-worker.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Number of worker processes
|
||||||
|
clusterLimit: 2
|
||||||
|
|
||||||
|
# Job concurrency per worker
|
||||||
|
# What's relationshipJob?:
|
||||||
|
# Follow, unfollow, block and unblock(ings) while following-imports, etc. or account migrations.
|
||||||
|
deliverJobConcurrency: 128
|
||||||
|
inboxJobConcurrency: 8
|
||||||
|
relationshipJobConcurrency: 32
|
||||||
|
|
||||||
|
# Job rate limiter
|
||||||
|
deliverJobPerSec: 4096
|
||||||
|
inboxJobPerSec: 4096
|
||||||
|
relationshipJobPerSec: 4096
|
||||||
|
|
||||||
|
# Job attempts
|
||||||
|
#deliverJobMaxAttempts: 12
|
||||||
|
#inboxJobMaxAttempts: 8
|
||||||
Loading…
Add table
Add a link
Reference in a new issue