1
0
Fork 0
mirror of synced 2024-05-19 04:02:34 +12:00

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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)
;

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')