1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Merge pull request #1575 from TorstenDittmann/fix-console-endpoint

fix(console): endpoint using proxy in front of traefik
This commit is contained in:
Torsten Dittmann 2021-09-03 11:43:44 +02:00 committed by GitHub
commit 1eefe3feb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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')