From 93a0d4ffa2a5cefafb99bcbf418e96e083910238 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 22 Nov 2019 11:58:25 +0900 Subject: [PATCH] Add ability to configure Remote IP and Web cache TTL --- src/views/settings/components/Endpoint.vue | 12 +++++++++++- src/views/settings/components/Http.vue | 10 ++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/views/settings/components/Endpoint.vue b/src/views/settings/components/Endpoint.vue index d07f2515..a08e0847 100644 --- a/src/views/settings/components/Endpoint.vue +++ b/src/views/settings/components/Endpoint.vue @@ -4,8 +4,12 @@
- + + +
+ + Submit @@ -47,6 +51,12 @@ export default { }, loading() { return this.settings.loading + }, + remoteIp() { + return this.settings.description.find(setting => setting.key === 'Pleroma.Plugs.RemoteIp') + }, + remoteIpData() { + return this.settings.settings.pleroma['Pleroma.Plugs.RemoteIp'] } }, methods: { diff --git a/src/views/settings/components/Http.vue b/src/views/settings/components/Http.vue index ec33f695..9c67ffd3 100644 --- a/src/views/settings/components/Http.vue +++ b/src/views/settings/components/Http.vue @@ -14,6 +14,10 @@
+ +
+ + Submit @@ -65,6 +69,12 @@ export default { }, loading() { return this.settings.loading + }, + webCacheTtl() { + return this.settings.description.find(setting => setting.key === ':web_cache_ttl') + }, + webCacheTtlData() { + return this.settings.settings.pleroma[':web_cache_ttl'] } }, methods: {