【问题标题】:Disabling Liferay Webservice(s) using portal properties or Control Panel使用门户属性或控制面板禁用 Liferay Web 服务
【发布时间】:2020-05-17 16:03:35
【问题描述】:

我正在为我的门户应用程序使用 Liferay DXP。我想使用 Control PanelPortal Properties

进行以下实施
  1. 禁用未使用的默认/自定义 Web 服务。
  2. 禁用API页面(api/jsonws)的访问

以上是否可以使用门户属性或控制面板?

任何参考/帮助将不胜感激。

【问题讨论】:

  • 这是 1) 配置问题,2) 要求提供文档。这是关闭 Stackoverflow 上的离题问题的两个原因(请参阅 help center)。如果您将它带到 Liferay 论坛:它将成为主题(liferay.dev/forums)

标签: liferay liferay-7 liferay-dxp


【解决方案1】:
#
# The property "jsonws.web.service.paths.excludes" denotes patterns for JSON
# web service action paths that are not allowed even if they match one of
# the patterns set in "jsonws.web.service.paths.includes".
#
# Env: LIFERAY_JSONWS_PERIOD_WEB_PERIOD_SERVICE_PERIOD_PATHS_PERIOD_EXCLUDES
#
jsonws.web.service.paths.excludes=\
    /user/update-password


#
# Set this property to true if JSON web services are discoverable through
# the API page.
#
# Env: LIFERAY_JSONWS_PERIOD_WEB_PERIOD_SERVICE_PERIOD_API_PERIOD_DISCOVERABLE
#
jsonws.web.service.api.discoverable=true

您可以在 portal-ext.properties 中尝试以上属性。

供参考访问。 https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/portal.properties

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-03-28
    • 1970-01-01
    • 1970-01-01
    • 2023-01-25
    • 1970-01-01
    • 2012-03-12
    • 1970-01-01
    • 2015-01-03
    相关资源
    最近更新 更多