From c6e94aed03bef9256b1f9abcd3cb2f0ed858f6f4 Mon Sep 17 00:00:00 2001 From: Mert Tumer Date: Tue, 26 May 2020 15:48:36 +0300 Subject: Inform user about web server configuration issues Built-in CODE server needs a configuration in the webserver when it is Nginx, to be able to access proxy.php Co-authored-by: Muhammet Kara Signed-off-by: Muhammet Kara Signed-off-by: Mert Tumer --- src/components/AdminSettings.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue index bac31560..fa1482e1 100644 --- a/src/components/AdminSettings.vue +++ b/src/components/AdminSettings.vue @@ -27,7 +27,11 @@

{{ t('richdocuments', 'Collabora Online is a powerful LibreOffice-based online office suite with collaborative editing, which supports all major documents, spreadsheet and presentation file formats and works together with all modern browsers.') }}

-
+
+ {{ t('richdocuments', 'Could not establish connection to the Collabora Online server. This might be due to a missing configuration of your web server. For more information, please visit: ') }}{{ t('richdocuments', 'Connecting Collabora Online Single Click with Nginx') }} +
+
{{ t('richdocuments', 'Could not establish connection to the Collabora Online server.') }}
@@ -264,6 +268,7 @@ export default { hostErrors: [window.location.host === 'localhost' || window.location.host === '127.0.0.1', window.location.protocol !== 'https:', false], demoServers: null, CODEInstalled: 'richdocumentscode' in OC.appswebroots, + isNginx: false, approvedDemoModal: false, updating: false, groups: [], @@ -332,6 +337,10 @@ export default { this.uiVisible.external_apps = !!(this.settings.external_apps && this.settings.external_apps !== '') this.demoServers = this.initial.demo_servers + + if (this.initial.web_server && this.initial.web_server.length > 0) { + this.isNginx = this.initial.web_server.indexOf('nginx') !== -1 + } this.checkIfDemoServerIsActive() }, methods: { -- cgit v1.2.3