Forráskód Böngészése

Fixed module order and updated settings

Lukas Angerer 1 éve
szülő
commit
6a655e4963

+ 6 - 1
WebTemplate/AppServer.cs

@@ -10,13 +10,18 @@ namespace WebTemplate;
 
 public class AppServer
 {
+    /// <summary>
+    /// These are all the modules that are loaded. The order is _somewhat_ important since in many situations it is
+    /// relevant which configuration or middleware is applied first and the modules are applied in the order in
+    /// which they appear here.
+    /// </summary>
     private readonly IList<IAppConfigurationModule> _modules = new List<IAppConfigurationModule>
     {
         new JsonModule(),
         new AuthModule(),
         new CorsModule(),
-        new SpaRoutingModule(),
         new SwaggerModule(),
+        new SpaRoutingModule(),
         new StatusEndpointModule(),
         new ControllersModule(),
     };

+ 2 - 0
WebTemplate/Properties/launchSettings.json

@@ -5,6 +5,7 @@
       "commandName": "Project",
       "dotnetRunMessages": true,
       "launchBrowser": true,
+      "launchUrl": "http://localhost:5292/v1/status",
       "applicationUrl": "http://localhost:5292",
       "environmentVariables": {
         "ASPNETCORE_ENVIRONMENT": "Development"
@@ -14,6 +15,7 @@
       "commandName": "Project",
       "dotnetRunMessages": true,
       "launchBrowser": true,
+      "launchUrl": "https://localhost:7169/v1/status",
       "applicationUrl": "https://localhost:7169;http://localhost:5292",
       "environmentVariables": {
         "ASPNETCORE_ENVIRONMENT": "Development"

+ 4 - 4
WebTemplate/appsettings.json

@@ -7,13 +7,13 @@
   },
   "AllowedHosts": "*",
   "Auth":{
-    "Authority": "https://dev-2ls6voifhbt37usw.eu.auth0.com/",
-    "Audience": "https://runners.larcanum.net",
+    "Authority": "https://my-authority.net/",
+    "Audience": "https://my-application.net",
     "PolicyClaims": {
-      "Tracks": ["manage:tracks"]
+      "Sample": ["sample"]
     }
   },
   "Cors": {
-    "Origins": ["http://localhost:4200", "https://gpx.studio"]
+    "Origins": ["http://localhost:4200"]
   }
 }

+ 16 - 0
WebTemplate/wwwroot/index.html

@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+
+    <title>Default Page</title>
+    <meta name="description" content="Description">
+</head>
+
+<body>
+<h1>Default Page</h1>
+<p>Nothing to see here.</p>
+</body>
+
+</html>