Fix portal routing after settings changes

This commit is contained in:
2026-08-27 10:06:05 +08:00
parent e202a1eae2
commit 04a6027e1d
3 changed files with 35 additions and 8 deletions
+1 -1
View File
@@ -585,7 +585,7 @@ public sealed class NginxManager
{
var portalRoot = Path.Combine(_dataDirectory, "www").Replace('\\', '/');
sb.AppendLine(" server {");
sb.AppendLine($" listen {_config.PortalListenPort};");
sb.AppendLine($" listen {_config.PortalListenPort} default_server;");
sb.AppendLine($" server_name {_config.PortalDomain};");
sb.AppendLine($" root \"{portalRoot}\";");
sb.AppendLine(" index index.html;");