From b0bb5d8dfcf06e1df2a51d3e541894a7fbede6a2 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Tue, 31 Dec 2019 17:23:47 +0900 Subject: 期限切れ/未保存リモートファイルのローカルプロキシ (#5655) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Media Proxy を実装 * サンプルを追加 * https://github.com/syuilo/misskey/pull/5649#discussion_r359967471 の修正 * https://github.com/syuilo/misskey/pull/5649#discussion_r359967966 の修正 * https://github.com/syuilo/misskey/pull/5649#discussion_r359968219 の修正 * 期限切れ/未保存リモートファイルのローカルプロキシ * 設定 * 説明 * comment out * fix Co-authored-by: 和風ドレッシング <37681609+CookieRamen@users.noreply.github.com> --- src/client/app/admin/views/instance.vue | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/app/admin') diff --git a/src/client/app/admin/views/instance.vue b/src/client/app/admin/views/instance.vue index 223b3531e8..ebc554f955 100644 --- a/src/client/app/admin/views/instance.vue +++ b/src/client/app/admin/views/instance.vue @@ -81,6 +81,7 @@
{{ $t('cache-remote-files') }} + {{ $t('proxy-remote-files') }}
{{ $t('local-drive-capacity-mb') }} @@ -275,6 +276,7 @@ export default Vue.extend({ description: null, languages: null, cacheRemoteFiles: false, + proxyRemoteFiles: false, localDriveCapacityMb: null, remoteDriveCapacityMb: null, maxNoteTextLength: null, @@ -339,6 +341,7 @@ export default Vue.extend({ this.description = meta.description; this.languages = meta.langs.join(' '); this.cacheRemoteFiles = meta.cacheRemoteFiles; + this.proxyRemoteFiles = meta.proxyRemoteFiles; this.localDriveCapacityMb = meta.driveCapacityPerLocalUserMb; this.remoteDriveCapacityMb = meta.driveCapacityPerRemoteUserMb; this.maxNoteTextLength = meta.maxNoteTextLength; @@ -463,6 +466,7 @@ export default Vue.extend({ description: this.description, langs: this.languages ? this.languages.split(' ') : [], cacheRemoteFiles: this.cacheRemoteFiles, + proxyRemoteFiles: this.proxyRemoteFiles, localDriveCapacityMb: parseInt(this.localDriveCapacityMb, 10), remoteDriveCapacityMb: parseInt(this.remoteDriveCapacityMb, 10), maxNoteTextLength: parseInt(this.maxNoteTextLength, 10), -- cgit v1.2.3-freya