Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Updated config properties to be prefixed by "apicurio." instead of "d…
Browse files Browse the repository at this point in the history
…esigner."
  • Loading branch information
EricWittmann committed Mar 19, 2024
1 parent 3aced49 commit 1832e7f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class DesignerConfigSource implements ConfigSource {
public synchronized Map<String, String> getProperties() {
if (properties == null) {
properties = new HashMap<>();
String prefix = System.getenv("DESIGNER_PROPERTIES_PREFIX");
String prefix = System.getenv("APICURIO_PROPERTIES_PREFIX");
if (prefix != null) {
String profile = ProfileManager.getActiveProfile();
String profilePrefix = "%" + profile + ".";
Expand Down
24 changes: 12 additions & 12 deletions ui/.docker-scripts/create-config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

const fs = require("fs");

const CONFIG_OUTPUT_PATH=process.env["DESIGNER_CONFIG_OUTPUT_PATH"] || "/opt/app-root/src/config.js";
const CONFIG_OUTPUT_PATH=process.env["APICURIO_CONFIG_OUTPUT_PATH"] || "/opt/app-root/src/config.js";

console.info("Generating application config at:", CONFIG_OUTPUT_PATH);

const CONTEXT_PATH=process.env["DESIGNER_CONTEXT_PATH"] || "/";
const NAV_PREFIX_PATH=process.env["DESIGNER_NAV_PREFIX_PATH"] || "";
const DESIGNER_API_URL=process.env["DESIGNER_API_URL"] || "/apis/designer/v0";
const SHOW_MASTHEAD=process.env["DESIGNER_SHOW_MASTHEAD"] || "true";
const MASTHEAD_LABEL=process.env["DESIGNER_MASTHEAD_LABEL"] || "API DESIGNER";
const EDITORS_URL=process.env["DESIGNER_EDITORS_URL"] || "/editors/";
const CONTEXT_PATH=process.env["APICURIO_CONTEXT_PATH"] || "/";
const NAV_PREFIX_PATH=process.env["APICURIO_NAV_PREFIX_PATH"] || "";
const APICURIO_DESIGNER_API_URL=process.env["APICURIO_DESIGNER_API_URL"] || "/apis/designer/v0";
const SHOW_MASTHEAD=process.env["APICURIO_SHOW_MASTHEAD"] || "true";
const MASTHEAD_LABEL=process.env["APICURIO_MASTHEAD_LABEL"] || "API DESIGNER";
const EDITORS_URL=process.env["APICURIO_EDITORS_URL"] || "/editors/";

const AUTH_TYPE=process.env["DESIGNER_AUTH_TYPE"] || "none";
const AUTH_URL=process.env["DESIGNER_AUTH_URL"] || "";
const AUTH_CLIENT_ID=process.env["DESIGNER_AUTH_CLIENT_ID"] || "api-designer-ui";
const AUTH_REDIRECT_URL=process.env["DESIGNER_AUTH_REDIRECT_URL"] || "";
const AUTH_TYPE=process.env["APICURIO_AUTH_TYPE"] || "none";
const AUTH_URL=process.env["APICURIO_AUTH_URL"] || "";
const AUTH_CLIENT_ID=process.env["APICURIO_AUTH_CLIENT_ID"] || "api-designer-ui";
const AUTH_REDIRECT_URL=process.env["APICURIO_AUTH_REDIRECT_URL"] || "";

// Create the config to output.
const CONFIG = {
"apis": {
"designer": DESIGNER_API_URL
"designer": APICURIO_DESIGNER_API_URL
},
"ui": {
"contextPath": CONTEXT_PATH,
Expand Down

0 comments on commit 1832e7f

Please sign in to comment.