summaryrefslogtreecommitdiff
path: root/DSACore
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-09-27 20:03:01 +0200
committerTrueDoctor <d-kobert@web.de>2018-09-27 20:03:01 +0200
commitf38bd807a30550613340cba254380646f53f1ef4 (patch)
tree05cb1dde7368ca61851d65897e618d6e51aa5e87 /DSACore
parent09b0c5be9e23247411da850497b9cc6519d8f155 (diff)
reconfigured for https
Diffstat (limited to 'DSACore')
-rw-r--r--DSACore/DSACore.csproj5
-rw-r--r--DSACore/Program.cs2
-rw-r--r--DSACore/Properties/launchSettings.json2
-rw-r--r--DSACore/Startup.cs11
-rw-r--r--DSACore/libman.json14
5 files changed, 3 insertions, 31 deletions
diff --git a/DSACore/DSACore.csproj b/DSACore/DSACore.csproj
index 44c4f8c..67bd4ab 100644
--- a/DSACore/DSACore.csproj
+++ b/DSACore/DSACore.csproj
@@ -5,12 +5,11 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.AspNetCore.App" />
- <PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
+ <Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
- <Folder Include="wwwroot\" />
+ <PackageReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
diff --git a/DSACore/Program.cs b/DSACore/Program.cs
index 9bd6e6b..373a39e 100644
--- a/DSACore/Program.cs
+++ b/DSACore/Program.cs
@@ -14,8 +14,6 @@ namespace DSACore
{
public static void Main(string[] args)
{
- DSACore.DSA_Game.Dsa.Startup();
-
CreateWebHostBuilder(args).Build().Run();
}
diff --git a/DSACore/Properties/launchSettings.json b/DSACore/Properties/launchSettings.json
index 889d022..bcc4406 100644
--- a/DSACore/Properties/launchSettings.json
+++ b/DSACore/Properties/launchSettings.json
@@ -4,7 +4,7 @@
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
- "applicationUrl": "http://localhost:29492",
+ "applicationUrl": "http://localhost:2170",
"sslPort": 44365
}
},
diff --git a/DSACore/Startup.cs b/DSACore/Startup.cs
index efbd7b1..2d0c2a3 100644
--- a/DSACore/Startup.cs
+++ b/DSACore/Startup.cs
@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-using DSACore.Hubs;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
@@ -26,15 +25,7 @@ namespace DSACore
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
- services.AddCors(options =>
- {
- options.AddPolicy("AllowSpecificOrigin",
- builder => builder.WithOrigins("https://console.firebase.google.com/project/heldenonline-4d828"));
- });
-
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
-
- services.AddSignalR();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@@ -50,8 +41,6 @@ namespace DSACore
}
app.UseHttpsRedirection();
- app.UseSignalR(routes => { routes.MapHub<ChatHub>("/chatHub"); });
- app.UseCors("AllowSpecificOrigin");
app.UseMvc();
}
}
diff --git a/DSACore/libman.json b/DSACore/libman.json
deleted file mode 100644
index 5c82187..0000000
--- a/DSACore/libman.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "version": "1.0",
- "defaultProvider": "unpkg",
- "libraries": [
- {
- "library": "@aspnet/signalr@1.0.3",
- "destination": "wwwroot/lib/@aspnet/signalr/",
- "files": [
- "dist/browser/signalr.js",
- "dist/browser/signalr.min.js"
- ]
- }
- ]
-} \ No newline at end of file