Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Updated demo docker-compose.yml and bug fix for swagger UI in deployment

Rich Turner84405f0e35ee
diff --git a/docker-compose.yml b/docker-compose.yml
index a2eed4328..7609016d8 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -35,6 +35,7 @@ services:
condition: service_healthy
environment:
KEYCLOAK_FRONTEND_URL: ${KEYCLOAK_FRONTEND_URL:-https://localhost/auth}
+ KEYCLOAK_PASSWORD: ${SETUP_ADMIN_PASSWORD:-secret}
manager:
restart: always
@@ -44,3 +45,4 @@ services:
condition: service_healthy
environment:
DEV_MODE: ${DEV_MODE:-false}
+ SETUP_ADMIN_PASSWORD: ${SETUP_ADMIN_PASSWORD:-secret}
diff --git a/ui/app/swagger/index.html b/ui/app/swagger/index.html
index 738eeece2..9542127af 100644
--- a/ui/app/swagger/index.html
+++ b/ui/app/swagger/index.html
@@ -39,7 +39,7 @@
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
url: "/api/master/openapi.json",
- oauth2RedirectUrl: "/swagger/oauth2-redirect.html",
+ oauth2RedirectUrl: window.location.protocol + "//" + window.location.host + "/swagger/oauth2-redirect.html",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [