Просмотр исходного кода

😉默认启动改成http模式 端口5005

zuohuaijun 3 лет назад
Родитель
Сommit
daa80e8a21

+ 3 - 3
Admin.NET/Admin.NET.Application/Configuration/App.json

@@ -1,8 +1,8 @@
 {
     "$schema": "https://gitee.com/dotnetchina/Furion/raw/net6/schemas/v3/furion-schema.json",
 
-    "Urls": "https://*:44326;http://*:44325", // 配置默认端口
-    "https_port": 44326,
+    "Urls": "http://*:5005", // 配置默认端口
+    // "https_port": 44325,
 
     "AllowedHosts": "*",
 
@@ -13,7 +13,7 @@
         "DefaultRoutePrefix": "api", // 默认路由前缀
         "CamelCaseSeparator": "", // 骆驼(驼峰)/帕斯卡命名分隔符
         "LowercaseRoute": false, // 小写路由格式
-        "AsLowerCamelCase": true, // 启用小驼峰命名(首字母小写)
+        "AsLowerCamelCase": true // 启用小驼峰命名(首字母小写)
         //"KeepVerb": false // 保留动作谓词
         //"KeepName": true // 保留默认名称
     },

+ 1 - 0
Admin.NET/Admin.NET.Web.Core/Startup.cs

@@ -205,6 +205,7 @@ public class Startup : AppStartup
 
         // 启用HTTPS
         app.UseHttpsRedirection();
+
         app.UseStaticFiles();
 
         app.UseRouting();

+ 3 - 3
Admin.NET/Admin.NET.Web.Entry/Properties/launchSettings.json

@@ -5,8 +5,8 @@
         "windowsAuthentication": false,
         "anonymousAuthentication": true,
         "iisExpress": {
-            "applicationUrl": "https://localhost:44326",
-            "sslPort": 44326
+            "applicationUrl": "http://localhost:5005"
+            //"sslPort": 44325
         }
     },
     "profiles": {
@@ -23,7 +23,7 @@
             "dotnetRunMessages": true,
             "launchBrowser": true,
             "launchUrl": "",
-            "applicationUrl": "https://localhost:44326;http://localhost:44325",
+            "applicationUrl": "https://localhost:5001;http://localhost:5000",
             "environmentVariables": {
                 "ASPNETCORE_ENVIRONMENT": "Development"
             }

+ 1 - 1
Web/.env.development

@@ -2,4 +2,4 @@
 ENV = 'development'
 
 # 本地环境接口地址
-VITE_API_URL = 'https://localhost:44326'
+VITE_API_URL = 'http://localhost:5005'

+ 1 - 1
Web/.env.production

@@ -2,4 +2,4 @@
 ENV = 'production'
 
 # 线上环境接口地址
-VITE_API_URL = 'https://localhost:44326'
+VITE_API_URL = 'http://localhost:5005'