Skip to content

Commit

Permalink
Merge pull request #740 from update-host
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Sep 17, 2024
2 parents 0bf7496 + db9a20d commit 1ebda08
Show file tree
Hide file tree
Showing 36 changed files with 420 additions and 283 deletions.
8 changes: 4 additions & 4 deletions .config/docker_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,31 +72,31 @@ dbReplications: false
#โ”€โ”€โ”€โ”˜ Redis configuration โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

redis:
host: keydb
host: dragonfly
port: 6379
#family: 0 # 0=Both, 4=IPv4, 6=IPv6
#pass: example-pass
#prefix: example-prefix
#db: 1

#redisForPubsub:
# host: keydb
# host: dragonfly
# port: 6379
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
# #pass: example-pass
# #prefix: example-prefix
# #db: 1

#redisForJobQueue:
# host: keydb
# host: dragonfly
# port: 6379
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
# #pass: example-pass
# #prefix: example-prefix
# #db: 1

#redisForTimelines:
# host: keydb
# host: dragonfly
# port: 6379
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
# #pass: example-pass
Expand Down
8 changes: 4 additions & 4 deletions .devcontainer/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,31 +72,31 @@ dbReplications: false
#โ”€โ”€โ”€โ”˜ Redis configuration โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

redis:
host: keydb
host: dragonfly
port: 6379
#family: 0 # 0=Both, 4=IPv4, 6=IPv6
#pass: example-pass
#prefix: example-prefix
#db: 1

#redisForPubsub:
# host: keydb
# host: dragonfly
# port: 6379
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
# #pass: example-pass
# #prefix: example-prefix
# #db: 1

#redisForJobQueue:
# host: keydb
# host: dragonfly
# port: 6379
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
# #pass: example-pass
# #prefix: example-prefix
# #db: 1

#redisForTimelines:
# host: keydb
# host: dragonfly
# port: 6379
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
# #pass: example-pass
Expand Down
24 changes: 16 additions & 8 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,25 @@ services:
- internal_network
- external_network

keydb:
dragonfly:
restart: unless-stopped
image: eqalpha/keydb:latest
image: docker.dragonflydb.io/dragonflydb/dragonfly
ulimits:
memlock: -1
environment:
DFLY_snapshot_cron: '* * * * *'
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4
DFLY_epoll_file_threads: 4
DFLY_proactor_threads: 4
networks:
- internal_network
volumes:
- keydb-data:/data
healthcheck:
test: "keydb-cli ping"
interval: 5s
retries: 20
- dragonfly-data:/data

db:
restart: unless-stopped
Expand All @@ -45,7 +53,7 @@ services:

volumes:
postgres-data:
keydb-data:
dragonfly-data:

networks:
internal_network:
Expand Down
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ docker-compose.yml
node_modules/
packages/*/node_modules
redis/
keydb/
files/
fluent-emojis/
.pnp.*
Expand Down
28 changes: 24 additions & 4 deletions .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,18 @@ jobs:
env:
POSTGRES_DB: test-misskey
POSTGRES_HOST_AUTH_METHOD: trust
keydb:
image: eqalpha/keydb:latest
dragonfly:
image: docker.dragonflydb.io/dragonflydb/dragonfly
options: --ulimit "memlock=-1"
env:
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4
DFLY_epoll_file_threads: 4
DFLY_proactor_threads: 4
ports:
- 56312:6379

Expand Down Expand Up @@ -84,8 +94,18 @@ jobs:
env:
POSTGRES_DB: test-misskey
POSTGRES_HOST_AUTH_METHOD: trust
keydb:
image: eqalpha/keydb:latest
dragonfly:
image: docker.dragonflydb.io/dragonflydb/dragonfly
options: --ulimit "memlock=-1"
env:
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4
DFLY_epoll_file_threads: 4
DFLY_proactor_threads: 4
ports:
- 56312:6379

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ run.bat
api-docs.json
*.log
/redis
/keydb
*.code-workspace
.DS_Store
/files
Expand Down
21 changes: 19 additions & 2 deletions chart/templates/Deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,25 @@ spec:
value: "misskey"
ports:
- containerPort: 5432
- name: keydb
image: eqalpha/keydb:latest
- name: dragonfly
image: docker.dragonflydb.io/dragonflydb/dragonfly
env:
- name: DFLY_version_check
value: false
- name: DFLY_tcp_backlog
value: 2048
- name: DFLY_default_lua_flags
value: allow-undeclared-keys
- name: DFLY_pipeline_squash
value: 0
- name: DFLY_multi_exec_squash
value: false
- name: DFLY_conn_io_threads
value: 4
- name: DFLY_epoll_file_threads
value: 4
- name: DFLY_proactor_threads
value: 4
ports:
- containerPort: 6379
volumes:
Expand Down
22 changes: 15 additions & 7 deletions docker-compose.local-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@ version: "3"
# ใ“ใฎconfigใฏใ€ dockerใงMisskeyๆœฌไฝ“ใ‚’่ตทๅ‹•ใ›ใšใ€ redisใจpostgresql ใชใฉใ ใ‘ใ‚’่ตทๅ‹•ใ—ใพใ™

services:
keydb:
dragonfly:
restart: always
image: eqalpha/keydb:latest
image: docker.dragonflydb.io/dragonflydb/dragonfly
ulimits:
memlock: -1
environment:
DFLY_snapshot_cron: '* * * * *'
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4
DFLY_epoll_file_threads: 4
DFLY_proactor_threads: 4
ports:
- "6379:6379"
volumes:
- ./keydb:/data
healthcheck:
test: "keydb-cli ping"
interval: 5s
retries: 20
- ./redis:/data

db:
restart: always
Expand Down
26 changes: 17 additions & 9 deletions docker-compose_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ services:
restart: always
links:
- db
- keydb
- dragonfly
# - mcaptcha
# - meilisearch
depends_on:
db:
condition: service_healthy
keydb:
dragonfly:
condition: service_healthy
ports:
- "3000:3000"
Expand All @@ -23,17 +23,25 @@ services:
- ./files:/misskey/files
- ./.config:/misskey/.config:ro

keydb:
dragonfly:
restart: always
image: eqalpha/keydb:latest
image: docker.dragonflydb.io/dragonflydb/dragonfly
ulimits:
memlock: -1
environment:
DFLY_snapshot_cron: '* * * * *'
DFLY_version_check: false
DFLY_tcp_backlog: 2048
DFLY_default_lua_flags: allow-undeclared-keys
DFLY_pipeline_squash: 0
DFLY_multi_exec_squash: false
DFLY_conn_io_threads: 4
DFLY_epoll_file_threads: 4
DFLY_proactor_threads: 4
networks:
- internal_network
volumes:
- ./keydb:/data
healthcheck:
test: "keydb-cli ping"
interval: 5s
retries: 20
- ./redis:/data

db:
restart: always
Expand Down
5 changes: 5 additions & 0 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,10 @@ moderation: "Moderation"
moderationNote: "Moderation note"
addModerationNote: "Add moderation note"
moderationLogs: "Moderation logs"
userAccountMoveLogs: "Account migration logs"
userAccountMoveLogsTitle: "{from} migrated the account to {to}"
movedToId: "ID of the account migrated to"
moveFromId: "ID of the account migrated from"
nUsersMentioned: "Mentioned by {n} users"
securityKeyAndPasskey: "Security- and passkeys"
securityKey: "Security key"
Expand Down Expand Up @@ -1087,6 +1091,7 @@ audioFiles: "Audio"
dataSaver: "Data Saver"
accountMigration: "Account Migration"
accountMoved: "This user has moved to a new account:"
accountMovedFrom: "This user has been migrated from the following account:"
accountMovedShort: "This account has been migrated."
operationForbidden: "Operation forbidden"
forceShowAds: "Always show ads"
Expand Down
9 changes: 8 additions & 1 deletion locales/ko-KR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@ moderation: "์กฐ์ •"
moderationNote: "์กฐ์ • ๊ธฐ๋ก"
addModerationNote: "์กฐ์ • ๊ธฐ๋ก ์ถ”๊ฐ€ํ•˜๊ธฐ"
moderationLogs: "๋ชจ๋”๋ ˆ์ด์…˜ ๋กœ๊ทธ"
userAccountMoveLogs: "๊ณ„์ • ์ด์‚ฌ ์‚ฌ์šฉ ๋กœ๊ทธ"
userAccountMoveLogsTitle: "{from} ๊ฐ€ {to} ๋กœ ๊ณ„์ •์„ ์ด์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค"
movedToId: "์ด์‚ฌ ํ›„ ๊ณ„์ •์˜ ID"
moveFromId: "์ด์‚ฌ ์ „ ๊ณ„์ •์˜ ID"
nUsersMentioned: "{n}๋ช…์ด ์–ธ๊ธ‰ํ•จ"
securityKeyAndPasskey: "๋ณด์•ˆ ํ‚ค ๋˜๋Š” ํŒจ์Šค ํ‚ค"
securityKey: "๋ณด์•ˆ ํ‚ค"
Expand Down Expand Up @@ -907,7 +911,8 @@ unmuteThread: "๊ธ€ํƒ€๋ž˜ ๋ฎคํŠธ ํ•ด์ œ"
followingVisibility: "ํŒ”๋กœ์šฐ์˜ ๊ณต๊ฐœ ๋ฒ”์œ„"
followersVisibility: "ํŒ”๋กœ์›Œ์˜ ๊ณต๊ฐœ ๋ฒ”์œ„"
continueThread: "๊ธ€ํƒ€๋ž˜ ๋” ๋ณด๊ธฐ"
deleteAccountConfirm: "๊ณ„์ •์ด ์‚ญ์ œ๋˜๊ณ  ๋˜๋Œ๋ฆด ์ˆ˜ ์—†๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ๊ณ„์†ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ? "
deleteAccountConfirm: "๊ณ„์ •์ด ์‚ญ์ œ๋˜๊ณ  ๋˜๋Œ๋ฆด ์ˆ˜ ์—†๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ๊ณ„์†ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?"
deleteAccountConfirmAndWarn: "๊ณ„์ •์ด ์‚ญ์ œ๋ฉ๋‹ˆ๋‹ค.\n์‚ญ์ œ ์š”์ฒญ ํ›„ ๋‹ค์‹œ ๋กœ๊ทธ์ธํ•˜๋ฉด ๊ณ„์ • ์‚ญ์ œ๊ฐ€ ์ค‘๋‹จ๋˜์–ด ๋ฒ„๋ฆฝ๋‹ˆ๋‹ค.\n๊ณ„์†ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?"
incorrectPassword: "๋น„๋ฐ€๋ฒˆํ˜ธ๊ฐ€ ์˜ฌ๋ฐ”๋ฅด์ง€ ์•Š์Šต๋‹ˆ๋‹ค."
voteConfirm: "\"{choice}\"์— ํˆฌํ‘œํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?"
hide: "์ˆจ๊ธฐ๊ธฐ"
Expand Down Expand Up @@ -1085,6 +1090,7 @@ audioFiles: "์†Œ๋ฆฌ"
dataSaver: "๋ฐ์ดํ„ฐ ์ ˆ์•ฝ ๋ชจ๋“œ"
accountMigration: "๊ณ„์ • ์ด๋™"
accountMoved: "์ด ์‚ฌ์šฉ์ž๋Š” ๋‹ค์Œ ๊ณ„์ •์œผ๋กœ ์ด์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค:"
accountMovedFrom: "์ด ์‚ฌ์šฉ์ž๋Š” ๋‹ค์Œ ๊ณ„์ •์—์„œ ์ด์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค:"
accountMovedShort: "์ด์‚ฌํ•œ ๊ณ„์ •์ž…๋‹ˆ๋‹ค"
operationForbidden: "์‚ฌ์šฉํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค"
forceShowAds: "๊ด‘๊ณ ๋ฅผ ํ•ญ์ƒ ํ‘œ์‹œ"
Expand Down Expand Up @@ -1798,6 +1804,7 @@ _accountDelete:
requestAccountDelete: "๊ณ„์ • ์‚ญ์ œ ์š”์ฒญ"
started: "์‚ญ์ œ ์ž‘์—…์ด ์‹œ์ž‘๋˜์—ˆ์Šต๋‹ˆ๋‹ค."
inProgress: "์‚ญ์ œ ์ง„ํ–‰ ์ค‘"
dontLogin: "์‚ญ์ œ๊ฐ€ ์ค‘๋‹จ๋˜์–ด ๋ฒ„๋ฆด ์ˆ˜ ์žˆ์œผ๋ฏ€๋กœ, ๊ณ„์ •์— ๋กœ๊ทธ์ธํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค."
_ad:
back: "๋’ค๋กœ"
reduceFrequencyOfThisAd: "์ด ๊ด‘๊ณ ์˜ ํ‘œ์‹œ ๋นˆ๋„ ๋‚ฎ์ถ”๊ธฐ"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "2024.5.0-host.2e",
"version": "2024.5.0-host.2f",
"codename": "nasubi",
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 1ebda08

Please sign in to comment.