Skip to content

Commit c03654c

Browse files
authored
Merge pull request #22 from sweshelo/develop
Develop
2 parents 8aa2707 + 31e2527 commit c03654c

File tree

1,356 files changed

+77897
-29032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,356 files changed

+77897
-29032
lines changed

β€Ž.config/cypress-devcontainer.yml

+224
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2+
# Misskey configuration
3+
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4+
5+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
6+
#β”€β”€β”€β”˜ Initial Setup Password └─────────────────────────────────────────────────────
7+
8+
# Password to initiate setting up admin account.
9+
# It will not be used after the initial setup is complete.
10+
#
11+
# Be sure to change this when you set up Misskey via the Internet.
12+
#
13+
# The provider of the service who sets up Misskey on behalf of the customer should
14+
# set this value to something unique when generating the Misskey config file,
15+
# and provide it to the customer.
16+
setupPassword: example_password_please_change_this_or_you_will_get_hacked
17+
18+
# β”Œβ”€β”€β”€β”€β”€β”
19+
#β”€β”€β”€β”˜ URL └─────────────────────────────────────────────────────
20+
21+
# Final accessible URL seen by a user.
22+
url: 'http://misskey.local'
23+
24+
# ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE
25+
# URL SETTINGS AFTER THAT!
26+
27+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
28+
#β”€β”€β”€β”˜ Port and TLS settings └───────────────────────────────────
29+
30+
#
31+
# Misskey requires a reverse proxy to support HTTPS connections.
32+
#
33+
# +----- https://example.tld/ ------------+
34+
# +------+ |+-------------+ +----------------+|
35+
# | User | ---> || Proxy (443) | ---> | Misskey (3000) ||
36+
# +------+ |+-------------+ +----------------+|
37+
# +---------------------------------------+
38+
#
39+
# You need to set up a reverse proxy. (e.g. nginx)
40+
# An encrypted connection with HTTPS is highly recommended
41+
# because tokens may be transferred in GET requests.
42+
43+
# The port that your Misskey server should listen on.
44+
port: 61812
45+
46+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
47+
#β”€β”€β”€β”˜ PostgreSQL configuration └────────────────────────────────
48+
49+
db:
50+
host: db
51+
port: 5432
52+
53+
# Database name
54+
db: misskey
55+
56+
# Auth
57+
user: postgres
58+
pass: postgres
59+
60+
# Whether disable Caching queries
61+
#disableCache: true
62+
63+
# Extra Connection options
64+
#extra:
65+
# ssl: true
66+
67+
dbReplications: false
68+
69+
# You can configure any number of replicas here
70+
#dbSlaves:
71+
# -
72+
# host:
73+
# port:
74+
# db:
75+
# user:
76+
# pass:
77+
# -
78+
# host:
79+
# port:
80+
# db:
81+
# user:
82+
# pass:
83+
84+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
85+
#β”€β”€β”€β”˜ Redis configuration └─────────────────────────────────────
86+
87+
redis:
88+
host: redis
89+
port: 6379
90+
#family: 0 # 0=Both, 4=IPv4, 6=IPv6
91+
#pass: example-pass
92+
#prefix: example-prefix
93+
#db: 1
94+
95+
#redisForPubsub:
96+
# host: redis
97+
# port: 6379
98+
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
99+
# #pass: example-pass
100+
# #prefix: example-prefix
101+
# #db: 1
102+
103+
#redisForJobQueue:
104+
# host: redis
105+
# port: 6379
106+
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
107+
# #pass: example-pass
108+
# #prefix: example-prefix
109+
# #db: 1
110+
111+
#redisForTimelines:
112+
# host: redis
113+
# port: 6379
114+
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
115+
# #pass: example-pass
116+
# #prefix: example-prefix
117+
# #db: 1
118+
119+
#redisForReactions:
120+
# host: redis
121+
# port: 6379
122+
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
123+
# #pass: example-pass
124+
# #prefix: example-prefix
125+
# #db: 1
126+
127+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
128+
#β”€β”€β”€β”˜ MeiliSearch configuration └─────────────────────────────
129+
130+
#meilisearch:
131+
# host: meilisearch
132+
# port: 7700
133+
# apiKey: ''
134+
# ssl: true
135+
# index: ''
136+
137+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
138+
#β”€β”€β”€β”˜ ID generation └───────────────────────────────────────────
139+
140+
# You can select the ID generation method.
141+
# You don't usually need to change this setting, but you can
142+
# change it according to your preferences.
143+
144+
# Available methods:
145+
# aid ... Short, Millisecond accuracy
146+
# aidx ... Millisecond accuracy
147+
# meid ... Similar to ObjectID, Millisecond accuracy
148+
# ulid ... Millisecond accuracy
149+
# objectid ... This is left for backward compatibility
150+
151+
# ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE
152+
# ID SETTINGS AFTER THAT!
153+
154+
id: 'aidx'
155+
156+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
157+
#β”€β”€β”€β”˜ Error tracking └──────────────────────────────────────────
158+
159+
# Sentry is available for error tracking.
160+
# See the Sentry documentation for more details on options.
161+
162+
#sentryForBackend:
163+
# enableNodeProfiling: true
164+
# options:
165+
# dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0'
166+
167+
#sentryForFrontend:
168+
# options:
169+
# dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0'
170+
171+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
172+
#β”€β”€β”€β”˜ Other configuration └─────────────────────────────────────
173+
174+
# Whether disable HSTS
175+
#disableHsts: true
176+
177+
# Number of worker processes
178+
#clusterLimit: 1
179+
180+
# Job concurrency per worker
181+
# deliverJobConcurrency: 128
182+
# inboxJobConcurrency: 16
183+
184+
# Job rate limiter
185+
# deliverJobPerSec: 128
186+
# inboxJobPerSec: 32
187+
188+
# Job attempts
189+
# deliverJobMaxAttempts: 12
190+
# inboxJobMaxAttempts: 8
191+
192+
# IP address family used for outgoing request (ipv4, ipv6 or dual)
193+
#outgoingAddressFamily: ipv4
194+
195+
# Proxy for HTTP/HTTPS
196+
#proxy: http://127.0.0.1:3128
197+
198+
proxyBypassHosts:
199+
- api.deepl.com
200+
- api-free.deepl.com
201+
- www.recaptcha.net
202+
- hcaptcha.com
203+
- challenges.cloudflare.com
204+
205+
# Proxy for SMTP/SMTPS
206+
#proxySmtp: http://127.0.0.1:3128 # use HTTP/1.1 CONNECT
207+
#proxySmtp: socks4://127.0.0.1:1080 # use SOCKS4
208+
#proxySmtp: socks5://127.0.0.1:1080 # use SOCKS5
209+
210+
# Media Proxy
211+
#mediaProxy: https://example.com/proxy
212+
213+
# Proxy remote files (default: true)
214+
proxyRemoteFiles: true
215+
216+
# Sign to ActivityPub GET request (default: true)
217+
signToActivityPubGet: true
218+
219+
allowedPrivateNetworks: [
220+
'127.0.0.1/32'
221+
]
222+
223+
# Upload or download file size limits (bytes)
224+
#maxFileSize: 262144000

β€Ž.config/docker_example.env

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
# misskey settings
2+
# MISSKEY_URL=https://example.tld/
3+
14
# db settings
25
POSTGRES_PASSWORD=example-misskey-pass
6+
# DATABASE_PASSWORD=${POSTGRES_PASSWORD}
37
POSTGRES_USER=example-misskey-user
8+
# DATABASE_USER=${POSTGRES_USER}
49
POSTGRES_DB=misskey
10+
# DATABASE_DB=${POSTGRES_DB}
511
DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}"

β€Ž.config/docker_example.yml

+28-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#β”€β”€β”€β”˜ URL └─────────────────────────────────────────────────────
77

88
# Final accessible URL seen by a user.
9+
# You can set url from an environment variable instead.
910
url: https://example.tld/
1011

1112
# ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE
@@ -38,9 +39,11 @@ db:
3839
port: 5432
3940

4041
# Database name
42+
# You can set db from an environment variable instead.
4143
db: misskey
4244

4345
# Auth
46+
# You can set user and pass from environment variables instead.
4447
user: example-misskey-user
4548
pass: example-misskey-pass
4649

@@ -103,10 +106,18 @@ redis:
103106
# #prefix: example-prefix
104107
# #db: 1
105108

109+
#redisForReactions:
110+
# host: redis
111+
# port: 6379
112+
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
113+
# #pass: example-pass
114+
# #prefix: example-prefix
115+
# #db: 1
116+
106117
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
107118
#β”€β”€β”€β”˜ MeiliSearch configuration └─────────────────────────────
108119

109-
# You can set scope to local (default value) or global
120+
# You can set scope to local (default value) or global
110121
# (include notes from remote).
111122

112123
#meilisearch:
@@ -136,6 +147,21 @@ redis:
136147

137148
id: 'aidx'
138149

150+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
151+
#β”€β”€β”€β”˜ Error tracking └──────────────────────────────────────────
152+
153+
# Sentry is available for error tracking.
154+
# See the Sentry documentation for more details on options.
155+
156+
#sentryForBackend:
157+
# enableNodeProfiling: true
158+
# options:
159+
# dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0'
160+
161+
#sentryForFrontend:
162+
# options:
163+
# dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0'
164+
139165
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
140166
#β”€β”€β”€β”˜ Other configuration └─────────────────────────────────────
141167

@@ -185,7 +211,7 @@ proxyRemoteFiles: true
185211
signToActivityPubGet: true
186212

187213
# For security reasons, uploading attachments from the intranet is prohibited,
188-
# but exceptions can be made from the following settings. Default value is "undefined".
214+
# but exceptions can be made from the following settings. Default value is "undefined".
189215
# Read changelog to learn more (Improvements of 12.90.0 (2021/09/04)).
190216
#allowedPrivateNetworks: [
191217
# '127.0.0.1/32'

β€Ž.config/example.yml

+40-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# Option 3: If neither of the above applies to you.
3939
# (In this case, the source code should be published
4040
# on the Misskey interface. IT IS NOT ENOUGH TO
41-
# DISCLOSE THE SOURCE CODE WEHN A USER REQUESTS IT BY
41+
# DISCLOSE THE SOURCE CODE WHEN A USER REQUESTS IT BY
4242
# E-MAIL OR OTHER MEANS. If you are not satisfied
4343
# with this, it is recommended that you read the
4444
# license again carefully. Anyway, enabling this
@@ -59,6 +59,20 @@
5959
#
6060
# publishTarballInsteadOfProvideRepositoryUrl: true
6161

62+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
63+
#β”€β”€β”€β”˜ Initial Setup Password └─────────────────────────────────────────────────────
64+
65+
# Password to initiate setting up admin account.
66+
# It will not be used after the initial setup is complete.
67+
#
68+
# Be sure to change this when you set up Misskey via the Internet.
69+
#
70+
# The provider of the service who sets up Misskey on behalf of the customer should
71+
# set this value to something unique when generating the Misskey config file,
72+
# and provide it to the customer.
73+
#
74+
# setupPassword: example_password_please_change_this_or_you_will_get_hacked
75+
6276
# β”Œβ”€β”€β”€β”€β”€β”
6377
#β”€β”€β”€β”˜ URL └─────────────────────────────────────────────────────
6478

@@ -172,6 +186,16 @@ redis:
172186
# # You can specify more ioredis options...
173187
# #username: example-username
174188

189+
#redisForReactions:
190+
# host: localhost
191+
# port: 6379
192+
# #family: 0 # 0=Both, 4=IPv4, 6=IPv6
193+
# #pass: example-pass
194+
# #prefix: example-prefix
195+
# #db: 1
196+
# # You can specify more ioredis options...
197+
# #username: example-username
198+
175199
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
176200
#β”€β”€β”€β”˜ MeiliSearch configuration └─────────────────────────────
177201

@@ -205,6 +229,21 @@ redis:
205229

206230
id: 'aidx'
207231

232+
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
233+
#β”€β”€β”€β”˜ Error tracking └──────────────────────────────────────────
234+
235+
# Sentry is available for error tracking.
236+
# See the Sentry documentation for more details on options.
237+
238+
#sentryForBackend:
239+
# enableNodeProfiling: true
240+
# options:
241+
# dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0'
242+
243+
#sentryForFrontend:
244+
# options:
245+
# dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0'
246+
208247
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
209248
#β”€β”€β”€β”˜ Other configuration └─────────────────────────────────────
210249

β€Ž.devcontainer/docker-compose.yml β€Ž.devcontainer/compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
app:
53
build:
@@ -8,6 +6,7 @@ services:
86

97
volumes:
108
- ../:/workspace:cached
9+
- node_modules:/workspace/node_modules
1110

1211
command: sleep infinity
1312

@@ -46,6 +45,7 @@ services:
4645
volumes:
4746
postgres-data:
4847
redis-data:
48+
node_modules:
4949

5050
networks:
5151
internal_network:

0 commit comments

Comments
Β (0)