gitlab-aliyun-oss
Gitlab 配置阿里云 OSS
gitlab_rails['object_store']['enabled'] = true gitlab_rails['object_store']['proxy_download'] = true gitlab_rails['object_store']['connection'] = { 'provider' => 'AWS', 'aws_access_key_id' => '<REDACTED>', 'aws_secret_access_key' => '<REDACTED>', 'aws_signature_version' => 4, 'enable_signature_v4_streaming' => false, 'host' => 'oss-cn-hongkong-internal.aliyuncs.com', 'endpoint' => 'https://oss-cn-hongkong-internal.aliyuncs.com', 'path_style' => false } registry['storage'] = { 's3' => { 'accesskey' => '<REDACTED>', 'secretkey' => '<REDACTED>', 'bucket' => '<REDACTED>', 'region' => 'cn-hongkong', 'regionendpoint' => 'oss-cn-hongkong-internal.aliyuncs.com', 'pathstyle' => false, 'chunksize' => 25000000 }, 'redirect' => { 'disable' => true } }
其中 oss-cn-hongkong-internal.aliyuncs.com 换成你的 endpoint,redirect 配置按你心情来,重要的是 object_store 里的 endpoint 需要配置对
gitlab-aliyun-oss.txt · 最后更改: 2022-06-22 13:43:25 由 三三