Proxy-Konfiguration hinzufügen
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
"buildTarget": "DigitalData.UserManager.NgWebUI:build:production"
|
||||
},
|
||||
"development": {
|
||||
"proxyConfig": "proxy.conf.js",
|
||||
"proxyConfig": "proxy.conf.json",
|
||||
"buildTarget": "DigitalData.UserManager.NgWebUI:build:development"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
const { env } = require('process');
|
||||
|
||||
const target = env.ASPNETCORE_HTTPS_PORT ? `https://localhost:${env.ASPNETCORE_HTTPS_PORT}` :
|
||||
env.ASPNETCORE_URLS ? env.ASPNETCORE_URLS.split(';')[0] : 'http://localhost:62037';
|
||||
|
||||
const PROXY_CONFIG = [
|
||||
{
|
||||
context: [
|
||||
"/weatherforecast",
|
||||
],
|
||||
target: target,
|
||||
secure: false,
|
||||
headers: {
|
||||
Connection: 'Keep-Alive'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
module.exports = PROXY_CONFIG;
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"/api": {
|
||||
"target": "https://localhost:7202",
|
||||
"secure": false,
|
||||
"changeOrigin": true
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>User Manager Portal</title>
|
||||
<base href="/" />
|
||||
<user-manager-api href="https://localhost:7202/api/" user-route="user" group-route="group" module-route="module"
|
||||
<user-manager-api href="/api/" user-route="user" group-route="group" module-route="module"
|
||||
module-of-user-route="moduleOfUser" group-of-user-route="groupOfUser" user-representation-route="userRep"
|
||||
dir-group-route="directory/Group?propName=samaccountname" dir-user-route="directory/user" dir-route="directory"
|
||||
login-route="auth/login" , logout-route="auth/logout" , login-check-route="auth/check" />
|
||||
|
||||
Reference in New Issue
Block a user