Nextcloud 与 OpenProject 集成的 SSL 问题

问题描述 投票:0回答:0

我希望有人有类似的问题并能解决它。我尝试将 Nextcloud 和 OpenProject 绑定在一起,但无法正常工作。

下图显示设置:

我按照文档中的说明配置(甚至尝试)这两种服务。我使用 Node-Package-Manager 作为代理服务

我使用通配符证书(没有自签名证书)并且在 openproject 中我设置了以下自定义设置:

proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto https;

随 openproject 一起发布的 Apache 服务由安装步骤配置

Include /etc/openproject/addons/apache2/includes/server/*.conf
IncludeOptional /etc/openproject/addons/apache2/custom/server/*.conf

<VirtualHost *:80>
  ServerName openproject.example.net
  DocumentRoot /opt/openproject/public

  ProxyRequests off

  Include /etc/openproject/addons/apache2/includes/vhost/*.conf
  IncludeOptional /etc/openproject/addons/apache2/custom/vhost/*.conf

  # Can't use Location block since it would overshadow all the other proxypass directives on CentOS
  ProxyPass / http://127.0.0.1:6000/ retry=0
  ProxyPassReverse / http://127.0.0.1:6000/
</VirtualHost>

基于此描述外部 SSL 终止

我创建了 OpenProject 配置。 在 nextcloud,我设置了以下自定义设置:

client_body_buffer_size 512k;
proxy_read_timeout 86400s;
client_max_body_size 0;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Front-End-Https on;

基于此处的描述Nextcloud 配置 - 反向代理我像这样编辑了 config.php:

  'overwrite.cli.url' => 'https://nextcloud.example.net',
  'trusted_proxies'   => ['192.168.1.44'],
  'overwritehost'     => 'nextcloud.example.net',
  'overwriteprotocol' => 'https',
  'overwritewebroot'  => '/',
  'overwritecondaddr' => '^192\.168\.1\.44$',

本站测试集成-故障排除

curl --location --request GET 'https://nextcloud.example.net/index.php/apps/integration_openproject/check-config' --header 'Authorization: foo'

导致以下错误

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

如前所述,我尝试了所有配置,但没有任何帮助建立连接。 我不知道我错过了什么以及我可以尝试让这个一起工作......

nginx-reverse-proxy nextcloud openproject
© www.soinside.com 2019 - 2024. All rights reserved.