DannyChi commited on
Commit
98b4106
·
verified ·
1 Parent(s): 104ee77

Upload 2 files

Browse files
Files changed (2) hide show
  1. Program.cs +5 -5
  2. Properties/launchSettings.json +2 -2
Program.cs CHANGED
@@ -38,11 +38,11 @@ builder.Services.AddControllers();
38
  builder.WebHost.ConfigureKestrel(options =>
39
  {
40
  options.Limits.MaxRequestBodySize = 1073741824; // 1 GB
41
- options.ListenAnyIP(8080); // ��ť HTTP 8080 ݤf
42
- options.ListenAnyIP(7860, listenOptions =>
43
- {
44
- listenOptions.UseHttps(); // ��ť HTTPS 8081 �ݤf
45
- });
46
  });
47
 
48
 
 
38
  builder.WebHost.ConfigureKestrel(options =>
39
  {
40
  options.Limits.MaxRequestBodySize = 1073741824; // 1 GB
41
+ options.ListenAnyIP(7860); // �uO�d HTTP �Y�i
42
+ //options.ListenAnyIP(7860, listenOptions =>
43
+ //{
44
+ // listenOptions.UseHttps(); // ��ť HTTPS 8081 �ݤf
45
+ //});
46
  });
47
 
48
 
Properties/launchSettings.json CHANGED
@@ -33,8 +33,8 @@
33
  "launchBrowser": true,
34
  "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/weatherforecast",
35
  "environmentVariables": {
36
- "ASPNETCORE_HTTPS_PORTS": "7860",
37
- "ASPNETCORE_HTTP_PORTS": "8080"
38
  },
39
  "publishAllPorts": true,
40
  "useSSL": true
 
33
  "launchBrowser": true,
34
  "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/weatherforecast",
35
  "environmentVariables": {
36
+ //"ASPNETCORE_HTTPS_PORTS": "8080",
37
+ "ASPNETCORE_HTTP_PORTS": "7860"
38
  },
39
  "publishAllPorts": true,
40
  "useSSL": true