This commit is contained in:
syuilo 2025-05-14 17:18:39 +09:00
parent e72ce6085a
commit 43a8c3584f
11 changed files with 3 additions and 26 deletions

View File

@ -218,6 +218,3 @@ proxyBypassHosts:
allowedPrivateNetworks: [ allowedPrivateNetworks: [
'127.0.0.1/32' '127.0.0.1/32'
] ]
# Upload or download file size limits (bytes)
#maxFileSize: 262144000

View File

@ -234,9 +234,6 @@ proxyBypassHosts:
# '127.0.0.1/32' # '127.0.0.1/32'
#] #]
# Upload or download file size limits (bytes)
#maxFileSize: 262144000
# Log settings # Log settings
# logging: # logging:
# sql: # sql:

View File

@ -332,9 +332,6 @@ proxyBypassHosts:
# '127.0.0.1/32' # '127.0.0.1/32'
#] #]
# Upload or download file size limits (bytes)
#maxFileSize: 262144000
# PID File of master process # PID File of master process
#pidFile: /tmp/misskey.pid #pidFile: /tmp/misskey.pid

View File

@ -205,6 +205,3 @@ proxyBypassHosts:
allowedPrivateNetworks: [ allowedPrivateNetworks: [
'127.0.0.1/32' '127.0.0.1/32'
] ]
# Upload or download file size limits (bytes)
#maxFileSize: 262144000

View File

@ -6,6 +6,8 @@
- proxyRemoteFiles - proxyRemoteFiles
- disallowExternalApRedirect - disallowExternalApRedirect
- 許可しないかどうかではなく、許可するかどうかの設定(allowExternalApRedirect)になりました - 許可しないかどうかではなく、許可するかどうかの設定(allowExternalApRedirect)になりました
- 設定ファイルの maxFileSize が削除されました
- リクエストの最大ペイロードサイズは、nginxやCDNなどのMisskeyの前段で制限をするか、ロール設定で制限してください。
### General ### General
- Feat: 非ログインでサーバーを閲覧された際に、サーバー内のコンテンツを非公開にすることができるようになりました - Feat: 非ログインでサーバーを閲覧された際に、サーバー内のコンテンツを非公開にすることができるようになりました

View File

@ -224,6 +224,3 @@ id: "aidx"
#allowedPrivateNetworks: [ #allowedPrivateNetworks: [
# '127.0.0.1/32' # '127.0.0.1/32'
#] #]
# Upload or download file size limits (bytes)
#maxFileSize: 262144000

View File

@ -80,8 +80,6 @@ type Source = {
allowedPrivateNetworks?: string[]; allowedPrivateNetworks?: string[];
maxFileSize?: number;
clusterLimit?: number; clusterLimit?: number;
id: string; id: string;
@ -152,7 +150,6 @@ export type Config = {
proxySmtp: string | undefined; proxySmtp: string | undefined;
proxyBypassHosts: string[] | undefined; proxyBypassHosts: string[] | undefined;
allowedPrivateNetworks: string[] | undefined; allowedPrivateNetworks: string[] | undefined;
maxFileSize: number;
clusterLimit: number | undefined; clusterLimit: number | undefined;
id: string; id: string;
outgoingAddress: string | undefined; outgoingAddress: string | undefined;
@ -293,7 +290,6 @@ export function loadConfig(): Config {
proxySmtp: config.proxySmtp, proxySmtp: config.proxySmtp,
proxyBypassHosts: config.proxyBypassHosts, proxyBypassHosts: config.proxyBypassHosts,
allowedPrivateNetworks: config.allowedPrivateNetworks, allowedPrivateNetworks: config.allowedPrivateNetworks,
maxFileSize: config.maxFileSize ?? 262144000,
clusterLimit: config.clusterLimit, clusterLimit: config.clusterLimit,
outgoingAddress: config.outgoingAddress, outgoingAddress: config.outgoingAddress,
outgoingAddressFamily: config.outgoingAddressFamily, outgoingAddressFamily: config.outgoingAddressFamily,

View File

@ -41,7 +41,7 @@ export class DownloadService {
const timeout = 30 * 1000; const timeout = 30 * 1000;
const operationTimeout = 60 * 1000; const operationTimeout = 60 * 1000;
const maxSize = this.config.maxFileSize; const maxSize = 1024 * 1024 * 1024; // 1GB
const urlObj = new URL(url); const urlObj = new URL(url);
let filename = urlObj.pathname.split('/').pop() ?? 'untitled'; let filename = urlObj.pathname.split('/').pop() ?? 'untitled';

View File

@ -131,7 +131,6 @@ export class MetaEntityService {
mediaProxy: this.config.mediaProxy, mediaProxy: this.config.mediaProxy,
enableUrlPreview: instance.urlPreviewEnabled, enableUrlPreview: instance.urlPreviewEnabled,
noteSearchableScope: (this.config.meilisearch == null || this.config.meilisearch.scope !== 'local') ? 'global' : 'local', noteSearchableScope: (this.config.meilisearch == null || this.config.meilisearch.scope !== 'local') ? 'global' : 'local',
maxFileSize: this.config.maxFileSize,
federation: this.meta.federation, federation: this.meta.federation,
}; };

View File

@ -293,10 +293,6 @@ export const packedMetaLiteSchema = {
optional: false, nullable: false, optional: false, nullable: false,
default: 'local', default: 'local',
}, },
maxFileSize: {
type: 'number',
optional: false, nullable: false,
},
federation: { federation: {
type: 'string', type: 'string',
enum: ['all', 'specified', 'none'], enum: ['all', 'specified', 'none'],

View File

@ -51,7 +51,6 @@ export class ApiServerService {
fastify.register(multipart, { fastify.register(multipart, {
limits: { limits: {
fileSize: this.config.maxFileSize,
files: 1, files: 1,
}, },
}); });