From d2f65bc5c4731423678285b718e699d0579105ca Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 14 Jan 2023 22:04:52 -0600 Subject: change default http/s ports --- src/slskd/Core/Options.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 05331cd4..e0d67c59 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -1366,7 +1366,7 @@ namespace slskd [Description("HTTP listen port for web UI")] [Range(1, 65535)] [RequiresRestart] - public int Port { get; init; } = 5000; + public int Port { get; init; } = 5030; /// /// Gets HTTPS options. @@ -1557,7 +1557,7 @@ namespace slskd [Description("HTTPS listen port for web UI")] [Range(1, 65535)] [RequiresRestart] - public int Port { get; init; } = 5001; + public int Port { get; init; } = 5031; /// /// Gets a value indicating whether HTTP requests should be redirected to HTTPS. -- cgit v1.2.3 From 738c97d815068e9596d1b209fd1ce3da8244409e Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 14 Jan 2023 22:09:18 -0600 Subject: update launchSettings --- src/slskd/Properties/launchSettings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Properties/launchSettings.json b/src/slskd/Properties/launchSettings.json index b151b2f4..04eb101f 100644 --- a/src/slskd/Properties/launchSettings.json +++ b/src/slskd/Properties/launchSettings.json @@ -5,7 +5,7 @@ "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, - "applicationUrl": "https://localhost:5001;http://localhost:5000" + "applicationUrl": "https://localhost:5031;http://localhost:5030" } } } \ No newline at end of file -- cgit v1.2.3 From 1d5de68558dd90b17a87faf97e8e6a9655041e4c Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 14 Jan 2023 22:09:29 -0600 Subject: update default api in web --- src/web/src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/web/src/config.js b/src/web/src/config.js index 1cec9668..2663be36 100644 --- a/src/web/src/config.js +++ b/src/web/src/config.js @@ -1,5 +1,5 @@ const urlBase = (window.urlBase === '/' ? '' : window.urlBase) || ''; -const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:5000${urlBase}`; +const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:5030${urlBase}`; const apiBaseUrl = `${rootUrl}/api/v0`; const hubBaseUrl = `${rootUrl}/hub`; const tokenKey = 'slskd-token'; -- cgit v1.2.3 From 19dad4bba1d60b686db54fb612fe04aaad7acd24 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 15 Jan 2023 18:30:32 -0600 Subject: inject http port into html --- src/slskd/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index af5d7420..f1f6bc03 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -815,7 +815,7 @@ namespace slskd // prepend the url base. app.UsePathBase(urlBase); app.UseHTMLRewrite("((\\.)?\\/static)", $"{(urlBase == "/" ? string.Empty : urlBase)}/static"); - app.UseHTMLInjection($"", excludedRoutes: new[] { "/api", "/swagger" }); + app.UseHTMLInjection($"", excludedRoutes: new[] { "/api", "/swagger" }); Log.Information("Using base url {UrlBase}", urlBase); // serve static content from the configured path -- cgit v1.2.3 From f64e5491a88adf0bdeed355f925f80dde6f43581 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 15 Jan 2023 18:30:41 -0600 Subject: use injected port in dev --- src/web/src/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/web/src/config.js b/src/web/src/config.js index 2663be36..9dc19b5c 100644 --- a/src/web/src/config.js +++ b/src/web/src/config.js @@ -1,5 +1,6 @@ const urlBase = (window.urlBase === '/' ? '' : window.urlBase) || ''; -const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:5030${urlBase}`; +const devPort = window.port ?? 5030; +const rootUrl = process.env.NODE_ENV === 'production' ? urlBase : `http://localhost:${devPort}${urlBase}`; const apiBaseUrl = `${rootUrl}/api/v0`; const hubBaseUrl = `${rootUrl}/hub`; const tokenKey = 'slskd-token'; -- cgit v1.2.3 From 86e0b7331247ed1c171435916ed482aceb751fa0 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 16 Jan 2023 21:47:11 -0600 Subject: update default listen port --- src/slskd/Core/Options.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index e0d67c59..c9b46239 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -1127,7 +1127,7 @@ namespace slskd [EnvironmentVariable("SLSK_LISTEN_PORT")] [Description("port on which to listen for incoming connections")] [Range(1024, 65535)] - public int ListenPort { get; init; } = 50000; + public int ListenPort { get; init; } = 50300; /// /// Gets the minimum diagnostic level. -- cgit v1.2.3