自建svn以及git服务平台,SCM-Manager 从v2升级到v3踩坑及修复记录

自建svn以及git服务平台,SCM-Manager 从v2升级到v3踩坑及修复记录

  1. enable https proxy

I recently updated SCM-Manager from v2 to v3 and encountered an issue with Cloudflare HTTPS. In v2, HTTPS worked fine when my domain was proxied through Cloudflare, even though I hadn’t set up SSL on my server. However, after upgrading to v3, Cloudflare HTTPS no longer works.

For https on cloudflare, I use this configuration:
Flexible: Enable encryption only between your visitors and Cloudflare. This will avoid browser security warnings, but all connections between Cloudflare and your origin are made through HTTP.

Solution: Change the config variable forwardHeadersEnabled to true and reboot. The config file is in this path:

/etc/scm/config.yml

 

2. cache should be writeable

check your permissions for /var/cache/scm/work? This directory (and all subdirectories) have to be writable by scm.

3. scm home folder should be set with owner and group 1000:1000

sudo chown -R 1000:1000 /scm_home

原创文章,作者:江海志,如若转载,请注明出处:https://www.jianghaizhi.com/wzjs/1840.html

Like (0)
Previous 2025-02-02 15:02
Next 2014-07-23

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注