chore 调整adminservice swagger

This commit is contained in:
2025-10-27 20:21:24 +08:00
parent 30e5e6a4dc
commit 4afd7924b7
3 changed files with 6 additions and 16 deletions

View File

@ -26,7 +26,7 @@ public class AdminHttpApiHostModule : AbpModule
SwaggerConfigurationHelper.ConfigureWithOidc( SwaggerConfigurationHelper.ConfigureWithOidc(
context, context,
configuration["AuthServer:Authority"]!, configuration["AuthServer:Authority"]!,
["AdministrationService"], ["Admin", "Dispatch", "Payment", "Report", "TenantManagement"],
discoveryEndpoint: configuration["AuthServer:MetadataAddress"], discoveryEndpoint: configuration["AuthServer:MetadataAddress"],
apiTitle: "Administration Service API" apiTitle: "Administration Service API"
); );

View File

@ -6,18 +6,7 @@
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, },
"applicationUrl": "https://localhost:44354" "applicationUrl": "http://localhost:44354"
},
"Container (Dockerfile)": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
"environmentVariables": {
"ASPNETCORE_HTTPS_PORTS": "8081",
"ASPNETCORE_HTTP_PORTS": "8080"
},
"publishAllPorts": true,
"useSSL": true
} }
}, },
"$schema": "http://json.schemastore.org/launchsettings.json" "$schema": "http://json.schemastore.org/launchsettings.json"

View File

@ -6,8 +6,9 @@
"secret": "DBE31703-14F9-4B01-893D-900B8380CE04" "secret": "DBE31703-14F9-4B01-893D-900B8380CE04"
}, },
"AuthServer": { "AuthServer": {
"Authority": "https://localhost:44322", "Authority": "https://devauth.konsoft.top",
"RequireHttpsMetadata": true, "RequireHttpsMetadata": false,
"SwaggerClientId": "Admin_Swagger" "SwaggerClientId": "Dev_Admin_Swagger",
"MetadataAddress": "https://devauth.konsoft.top"
} }
} }