Standardports auf 4000 (Analyse Webserver) und 4001 (Admin Webserver) geändert
This commit is contained in:
@@ -18,12 +18,12 @@
|
||||
"ApiSettings": {
|
||||
"CanControl": true,
|
||||
"AuthRequired": false,
|
||||
"AllowedOrigins": [ "http://localhost:5000" ],
|
||||
"AllowedOrigins": [ "http://localhost:4000" ],
|
||||
"ReadOnlyDatabase": false
|
||||
},
|
||||
"Admin": {
|
||||
"Enabled": true,
|
||||
"Port": 5001,
|
||||
"Port": 4001,
|
||||
"Host": "localhost",
|
||||
"Token": ""
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<h2 style="font-size:19px; font-weight:800; margin:0 0 12px;">Authentication</h2>
|
||||
<p style="color:#8B93A7; font-size:13.5px; line-height:1.7; margin:0 0 14px;">Übergebe deinen API-Key (sofern aktiv) als Bearer-Token in jedem Request-Header.</p>
|
||||
<div style="border-radius:14px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); padding:18px 20px; font-family:'Roboto Mono'; font-size:13px; color:#C7CCDA; overflow-x:auto;">
|
||||
<pre>curl http://localhost:5000/api/dashboard \
|
||||
<pre>curl http://localhost:4000/api/dashboard \
|
||||
-H "Authorization: Bearer DEIN_API_KEY"</pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -57,7 +57,7 @@ public class AdminOptionsTests
|
||||
|
||||
var options = new PredictalyticsOptions
|
||||
{
|
||||
AdminServerPort = 5001,
|
||||
AdminServerPort = 4001,
|
||||
AdminServerHost = "localhost",
|
||||
AdminToken = "initial-token"
|
||||
};
|
||||
|
||||
@@ -39,8 +39,8 @@ public class PredictalyticsOptionsTests
|
||||
[Fact]
|
||||
public void WebserverUrl_falls_back_to_localhost_when_host_is_blank()
|
||||
{
|
||||
var options = new PredictalyticsOptions { WebserverHost = " ", WebserverPort = 5000 };
|
||||
Assert.Equal("http://localhost:5000", options.WebserverUrl);
|
||||
var options = new PredictalyticsOptions { WebserverHost = " ", WebserverPort = 4000 };
|
||||
Assert.Equal("http://localhost:4000", options.WebserverUrl);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
<div class="stat-card">
|
||||
<div class="stat-title">Analyse-Webserver (Öffentliche WebUI)</div>
|
||||
<div class="stat-value" id="dash-web-state">Gestoppt</div>
|
||||
<p class="stat-desc" id="dash-web-url">Port: 5000</p>
|
||||
<p class="stat-desc" id="dash-web-url">Port: 4000</p>
|
||||
<div class="stat-actions">
|
||||
<button id="dash-btn-web" class="btn btn-sm btn-primary" onclick="toggleWebserver()">Webserver starten</button>
|
||||
<a id="dash-link-web" href="#" target="_blank" class="btn btn-sm btn-secondary" style="display:none;">WebUI im Browser öffnen ↗</a>
|
||||
@@ -292,7 +292,7 @@
|
||||
<div class="form-row">
|
||||
<label>Admin-Port</label>
|
||||
<input type="number" id="cfg-admin-port" min="1" max="65535" required />
|
||||
<span class="field-hint">Standard: 5001. Bestimmt den Port, auf dem dieses Administrations-UI lauscht.</span>
|
||||
<span class="field-hint">Standard: 4001. Bestimmt den Port, auf dem dieses Administrations-UI lauscht.</span>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label>Admin Bind-Adresse</label>
|
||||
|
||||
@@ -507,14 +507,14 @@ async function loadSettings() {
|
||||
|
||||
// Admin
|
||||
if (data.adminServer) {
|
||||
document.getElementById('cfg-admin-port').value = data.adminServer.port || 5001;
|
||||
document.getElementById('cfg-admin-port').value = data.adminServer.port || 4001;
|
||||
document.getElementById('cfg-admin-host').value = data.adminServer.host || 'localhost';
|
||||
document.getElementById('cfg-admin-token').value = data.adminServer.token || '';
|
||||
}
|
||||
|
||||
// Webserver
|
||||
if (data.webserver) {
|
||||
document.getElementById('cfg-web-port').value = data.webserver.port || 5000;
|
||||
document.getElementById('cfg-web-port').value = data.webserver.port || 4000;
|
||||
document.getElementById('cfg-web-host').value = data.webserver.host || 'localhost';
|
||||
document.getElementById('cfg-web-token').value = data.webserver.apiControlToken || '';
|
||||
document.getElementById('cfg-web-dbdebug').checked = !!data.webserver.dbConnectionDebug;
|
||||
|
||||
@@ -325,7 +325,7 @@ public sealed class PredictalyticsHost
|
||||
// ─────────────────────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>
|
||||
/// Startet den separaten Kestrel-Webserver für das Verwaltungs-WebGUI (Port 5001).
|
||||
/// Startet den separaten Kestrel-Webserver für das Verwaltungs-WebGUI (Port 4001).
|
||||
/// </summary>
|
||||
public async Task StartAdminServerAsync()
|
||||
{
|
||||
|
||||
@@ -22,8 +22,8 @@ public sealed class PredictalyticsOptions
|
||||
[Category("Webserver")]
|
||||
[DisplayName("Port")]
|
||||
[Description("Der Port, über den die WebUI und API erreichbar sind.")]
|
||||
[DefaultValue(5000)]
|
||||
public int WebserverPort { get; set; } = 5000;
|
||||
[DefaultValue(4000)]
|
||||
public int WebserverPort { get; set; } = 4000;
|
||||
|
||||
[Category("Webserver")]
|
||||
[DisplayName("Bind-Adresse")]
|
||||
@@ -75,8 +75,8 @@ public sealed class PredictalyticsOptions
|
||||
[Category("Verwaltungs-Webserver")]
|
||||
[DisplayName("Port")]
|
||||
[Description("Der Port, über den das Verwaltungs-WebGUI erreichbar ist.")]
|
||||
[DefaultValue(5001)]
|
||||
public int AdminServerPort { get; set; } = 5001;
|
||||
[DefaultValue(4001)]
|
||||
public int AdminServerPort { get; set; } = 4001;
|
||||
|
||||
[Category("Verwaltungs-Webserver")]
|
||||
[DisplayName("Bind-Adresse")]
|
||||
|
||||
Reference in New Issue
Block a user