From cc31664f8b92e04fb6276dd2cd3d3858cfc75bdc Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 15 Jul 2019 19:08:47 +0200 Subject: [PATCH] Fix API port binding hopefully for good --- PluralKit.API/PluralKit.API.csproj | 4 +++ PluralKit.API/Program.cs | 2 +- PluralKit.API/Properties/launchSettings.json | 30 -------------------- PluralKit.API/appsettings.Development.json | 9 ------ PluralKit.API/appsettings.json | 8 ------ docker-compose.yml | 4 +-- 6 files changed, 7 insertions(+), 50 deletions(-) delete mode 100644 PluralKit.API/Properties/launchSettings.json delete mode 100644 PluralKit.API/appsettings.Development.json delete mode 100644 PluralKit.API/appsettings.json diff --git a/PluralKit.API/PluralKit.API.csproj b/PluralKit.API/PluralKit.API.csproj index 382fd144..8e030c48 100644 --- a/PluralKit.API/PluralKit.API.csproj +++ b/PluralKit.API/PluralKit.API.csproj @@ -14,4 +14,8 @@ + + <_ContentIncludedByDefault Remove="Properties\launchSettings.json" /> + + diff --git a/PluralKit.API/Program.cs b/PluralKit.API/Program.cs index 302e2344..160e0de6 100644 --- a/PluralKit.API/Program.cs +++ b/PluralKit.API/Program.cs @@ -21,7 +21,7 @@ namespace PluralKit.API public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseConfiguration(InitUtils.BuildConfiguration(args).Build()) - .ConfigureKestrel(opts => { opts.ListenAnyIP(5000); }) + .ConfigureKestrel(opts => { opts.ListenAnyIP(5000);}) .UseStartup(); } } \ No newline at end of file diff --git a/PluralKit.API/Properties/launchSettings.json b/PluralKit.API/Properties/launchSettings.json deleted file mode 100644 index ac364798..00000000 --- a/PluralKit.API/Properties/launchSettings.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:48228", - "sslPort": 44372 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "launchUrl": "api/values", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "PluralKit.API": { - "commandName": "Project", - "launchBrowser": true, - "launchUrl": "api/values", - "applicationUrl": "https://localhost:5001;http://localhost:5000", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -} \ No newline at end of file diff --git a/PluralKit.API/appsettings.Development.json b/PluralKit.API/appsettings.Development.json deleted file mode 100644 index e203e940..00000000 --- a/PluralKit.API/appsettings.Development.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Debug", - "System": "Information", - "Microsoft": "Information" - } - } -} diff --git a/PluralKit.API/appsettings.json b/PluralKit.API/appsettings.json deleted file mode 100644 index def9159a..00000000 --- a/PluralKit.API/appsettings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Warning" - } - }, - "AllowedHosts": "*" -} diff --git a/docker-compose.yml b/docker-compose.yml index 524054b0..f3d55f5f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: links: - db ports: - - 2837:80 + - 2837:5000 restart: always api: build: . @@ -28,7 +28,7 @@ services: links: - db ports: - - 2838:80 + - 2838:5000 restart: always db: image: postgres:alpine