Proxy-Konfiguration hinzufügen

This commit is contained in:
Developer 02
2024-07-01 12:01:08 +02:00
parent 9b93869c15
commit 8be6388a66
7 changed files with 14 additions and 41 deletions

View File

@@ -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"
}
},

View File

@@ -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;

View File

@@ -0,0 +1,7 @@
{
"/api": {
"target": "https://localhost:7202",
"secure": false,
"changeOrigin": true
}
}

View File

@@ -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" />