mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-12 15:37:27 +01:00
pgcosmos
This commit is contained in:
committed by
Chris Anderson
parent
80b926214b
commit
ff1e733679
@@ -202,7 +202,7 @@ export function updateConfigContext(newContext: Partial<ConfigContext>): void {
|
|||||||
if (process.env.NODE_ENV === "development") {
|
if (process.env.NODE_ENV === "development") {
|
||||||
updateConfigContext({
|
updateConfigContext({
|
||||||
PROXY_PATH: "/proxy",
|
PROXY_PATH: "/proxy",
|
||||||
EMULATOR_ENDPOINT: "https://localhost:8081",
|
EMULATOR_ENDPOINT: "https://localhost:10443",
|
||||||
PORTAL_BACKEND_ENDPOINT: PortalBackendEndpoints.Mpac,
|
PORTAL_BACKEND_ENDPOINT: PortalBackendEndpoints.Mpac,
|
||||||
MONGO_PROXY_ENDPOINT: MongoProxyEndpoints.Mpac,
|
MONGO_PROXY_ENDPOINT: MongoProxyEndpoints.Mpac,
|
||||||
CASSANDRA_PROXY_ENDPOINT: CassandraProxyEndpoints.Mpac,
|
CASSANDRA_PROXY_ENDPOINT: CassandraProxyEndpoints.Mpac,
|
||||||
@@ -259,3 +259,4 @@ export async function initializeConfiguration(): Promise<ConfigContext> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export { configContext };
|
export { configContext };
|
||||||
|
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ export const CassandraProxyOutboundIPs: { [key: string]: string[] } = {
|
|||||||
[CassandraProxyEndpoints.Mooncake]: ["40.73.99.146", "143.64.62.47"],
|
[CassandraProxyEndpoints.Mooncake]: ["40.73.99.146", "143.64.62.47"],
|
||||||
};
|
};
|
||||||
|
|
||||||
export const allowedEmulatorEndpoints: ReadonlyArray<string> = ["https://localhost:8081"];
|
export const allowedEmulatorEndpoints: ReadonlyArray<string> = ["https://localhost:10443"];
|
||||||
|
|
||||||
export const allowedMongoBackendEndpoints: ReadonlyArray<string> = ["https://localhost:1234"];
|
export const allowedMongoBackendEndpoints: ReadonlyArray<string> = ["https://localhost:1234"];
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -14,7 +14,7 @@
|
|||||||
<p class="Introline2">Now, let's connect a sample app to it.</p>
|
<p class="Introline2">Now, let's connect a sample app to it.</p>
|
||||||
<div id="divQuickStartConnections">
|
<div id="divQuickStartConnections">
|
||||||
<p class="Introline2">URI</p>
|
<p class="Introline2">URI</p>
|
||||||
<input type="text" class="codeblock" readonly="readonly" value="https://localhost:8081" />
|
<input type="text" class="codeblock" readonly="readonly" value="https://localhost:10443" />
|
||||||
<p class="Introline2">Primary Key</p>
|
<p class="Introline2">Primary Key</p>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
class="codeblock"
|
class="codeblock"
|
||||||
readonly="readonly"
|
readonly="readonly"
|
||||||
value="AccountEndpoint=https://localhost:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="
|
value="AccountEndpoint=https://localhost:10443/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="
|
||||||
/>
|
/>
|
||||||
<p class="Introline2">Mongo Connection String</p>
|
<p class="Introline2">Mongo Connection String</p>
|
||||||
<input
|
<input
|
||||||
|
|||||||
+2
-2
@@ -323,13 +323,13 @@ module.exports = function (_env = {}, argv = {}) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"/_explorer": {
|
"/_explorer": {
|
||||||
target: process.env.EMULATOR_ENDPOINT || "https://localhost:8081/",
|
target: process.env.EMULATOR_ENDPOINT || "https://localhost:10443/",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
logLevel: "debug",
|
logLevel: "debug",
|
||||||
},
|
},
|
||||||
"/explorerProxy": {
|
"/explorerProxy": {
|
||||||
target: process.env.EMULATOR_ENDPOINT || "https://localhost:8081/",
|
target: process.env.EMULATOR_ENDPOINT || "https://localhost:10443/",
|
||||||
pathRewrite: { "^/explorerProxy": "" },
|
pathRewrite: { "^/explorerProxy": "" },
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user