fix(console): endpoint using proxy in front of traefik

This commit is contained in:
Torsten Dittmann
2021-09-03 09:38:46 +02:00
parent c6b54f111b
commit 30802d7d4a
4 changed files with 8 additions and 6 deletions
+2 -2
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -3,9 +3,10 @@
window.ls.container.set('console', function (window) {
var sdk = new window.Appwrite();
var endpoint = window.location.origin + '/v1';
sdk
.setEndpoint(APP_ENV.ENDPOINT + APP_ENV.API)
.setEndpoint(endpoint)
.setProject('console')
.setLocale(APP_ENV.LOCALE)
;
+2 -1
View File
@@ -3,9 +3,10 @@
window.ls.container.set('sdk', function (window, router) {
var sdk = new window.Appwrite();
var endpoint = window.location.origin + '/v1';
sdk
.setEndpoint(APP_ENV.ENDPOINT + APP_ENV.API)
.setEndpoint(endpoint)
.setProject(router.params.project || '')
.setLocale(APP_ENV.LOCALE)
.setMode('admin')