Standardport für WebUI von 5001 auf 6001 geändert
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
<StackPanel Spacing="12">
|
||||
<TextBlock Text="Server-Status" FontWeight="SemiBold" FontSize="14" />
|
||||
<TextBlock Name="lblWebUiStatus" Text="Status wird ermittelt …" Foreground="{DynamicResource AppAccentBrush}" />
|
||||
<TextBlock Name="lblWebUiUrl" Text="http://127.0.0.1:5001" Foreground="{DynamicResource AppMutedTextBrush}" FontSize="12" />
|
||||
<TextBlock Name="lblWebUiUrl" Text="http://127.0.0.1:6001" Foreground="{DynamicResource AppMutedTextBrush}" FontSize="12" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
|
||||
<Grid ColumnDefinitions="140,*" Margin="0,4">
|
||||
<TextBlock Grid.Column="0" Text="Port:" VerticalAlignment="Center" />
|
||||
<NumericUpDown Name="numWebUiPort" Grid.Column="1" Minimum="1024" Maximum="65535" Value="5001" Width="150" HorizontalAlignment="Left" />
|
||||
<NumericUpDown Name="numWebUiPort" Grid.Column="1" Minimum="1024" Maximum="65535" Value="6001" Width="150" HorizontalAlignment="Left" />
|
||||
</Grid>
|
||||
|
||||
<CheckBox Name="chkWebUiLocalOnly" Content="Nur lokaler Zugriff (127.0.0.1)" />
|
||||
|
||||
@@ -510,7 +510,7 @@ namespace PolyTrader.App.Avalonia.Views
|
||||
var txtToken = this.FindControl<TextBox>("txtWebUiToken")!;
|
||||
|
||||
_webOptions.Enabled = chkEnabled.IsChecked ?? true;
|
||||
_webOptions.Port = (int)(numPort.Value ?? 5001);
|
||||
_webOptions.Port = (int)(numPort.Value ?? 6001);
|
||||
_webOptions.LocalOnly = chkLocal.IsChecked ?? true;
|
||||
_webOptions.AuthToken = txtToken.Text?.Trim() ?? string.Empty;
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
}
|
||||
},
|
||||
"WebUi": {
|
||||
"_comment": "Port (Standard 5001), LocalOnly (Standard true = nur 127.0.0.1). AuthToken liegt in appsettings.Local.json.",
|
||||
"_comment": "Port (Standard 6001), LocalOnly (Standard true = nur 127.0.0.1). AuthToken liegt in appsettings.Local.json.",
|
||||
"Enabled": true,
|
||||
"Port": 5001,
|
||||
"Port": 6001,
|
||||
"LocalOnly": true,
|
||||
"AuthToken": ""
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@ namespace PolyTrader.Web.Configuration
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Port, auf dem Kestrel lauscht (Standard: 5001).
|
||||
/// Port, auf dem Kestrel lauscht (Standard: 6001).
|
||||
/// </summary>
|
||||
public int Port { get; set; } = 5001;
|
||||
public int Port { get; set; } = 6001;
|
||||
|
||||
/// <summary>
|
||||
/// Wenn true, bindet Kestrel nur an Loopback (127.0.0.1 / localhost).
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace PolyTrader.Web.Endpoints
|
||||
{
|
||||
var opt = optionsProvider.Value;
|
||||
opt.Enabled = req.Enabled;
|
||||
opt.Port = req.Port > 0 && req.Port <= 65535 ? req.Port : 5001;
|
||||
opt.Port = req.Port > 0 && req.Port <= 65535 ? req.Port : 6001;
|
||||
opt.LocalOnly = req.LocalOnly;
|
||||
if (req.AuthToken != null)
|
||||
{
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
<div class="form-row">
|
||||
<label for="cfgPort">Server-Port</label>
|
||||
<input type="number" id="cfgPort" class="form-input" min="1024" max="65535" required>
|
||||
<div class="form-desc">Standard ist 5001. Änderung wird nach dem nächsten Neustart aktiv.</div>
|
||||
<div class="form-desc">Standard ist 6001. Änderung wird nach dem nächsten Neustart aktiv.</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
|
||||
Reference in New Issue
Block a user