-
guqing commented on issue #6255 in halo-dev/halo
希望增加X-Forwarded-Proto和X-Forwarded-Host,通过雷池代理的网站是通过这俩请求头传递上游IP的
Hi @52lemon6 , 看看能否通过配置的方式解决 https://waf-ce.chaitin.cn/docs/faq/other ,一般来说 X-Forwarded-For 和 X-Real-IP 才是最常用的
-
guqing created a review on pull request #6334 in halo-dev/halo
-
guqing commented on issue #6359 in halo-dev/halo
-
guqing pushed to feature/api-client in halo-sigs/halo-gradle-plugin
-
guqing pushed to feature/api-client in halo-sigs/halo-gradle-plugin
-
guqing opened pull request #16 in halo-sigs/halo-gradle-plugin
What this PR does?
实现了两个 tasks,用于为插件项目生成 OpenAPI docs 和 API Client
generateOpenApiDocs
: 启动一个 Halo 作为 API Docs Server 并根据用户配置的 groupedApiMappings 来下载 Open API 的 json 文件到指定目录generateApiClient
根据 groupedApiMappings 指定的文件名称和其他配置来生成 API Client 到前端模块的项目中
使用方式:
在 build.gradle 中配置haloPlugin { openApi { outputDir = file("$rootDir/api-docs/openapi/v3_0") groupedApiMappings = [ '/v3/api-docs/apis_aggregated.api_v1alpha1': 'aggregated.json' ] generator { // 默认配置可缺省 outputDir = file("${projectDir}/console/src/api/generated") // 默认配置可缺省 additionalProperties = [ useES6: true, useSingleRequestParameter: true, withSeparateModelsAndApi: true, apiPackage: "api", modelPackage: "models" ] // 默认配置可缺省 typeMappings = [ set: "Array" ] } } }
-
guqing pushed to feature/api-client in halo-sigs/halo-gradle-plugin
-
guqing opened pull request #15 in halo-sigs/halo-gradle-plugin
-
guqing created branch feature/swagger-ui in halo-sigs/halo-gradle-plugin
halo-sigs/halo-gradle-plugin
This is a Gradle plugin for building Halo plugins, written in Java.
-
guqing created branch feature/api-client in halo-sigs/halo-gradle-plugin
halo-sigs/halo-gradle-plugin
This is a Gradle plugin for building Halo plugins, written in Java.