File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1958,6 +1958,11 @@ install_configuration_templates() {
19581958 install_template ${GITLAB_USER} : gitaly/config.toml ${GITLAB_GITALY_CONFIG}
19591959}
19601960
1961+ gitlab_configure_assets_access () {
1962+ # https://github.com/ustclug/docker-gitlab/issues/4
1963+ chmod 755 ${GITLAB_HOME}
1964+ }
1965+
19611966configure_gitlab () {
19621967 echo " Configuring gitlab..."
19631968 update_template ${GITLAB_CONFIG} \
@@ -2018,6 +2023,7 @@ configure_gitlab() {
20182023 gitlab_configure_sentry
20192024 generate_healthcheck_script
20202025 gitlab_configure_content_security_policy
2026+ gitlab_configure_assets_access
20212027
20222028 # remove stale gitlab.socket
20232029 rm -rf ${GITLAB_INSTALL_DIR} /tmp/sockets/gitlab.socket
@@ -2174,10 +2180,6 @@ configure_nginx() {
21742180 -e " s|# server_names_hash_bucket_size 64;|server_names_hash_bucket_size ${NGINX_SERVER_NAMES_HASH_BUCKET_SIZE} ;|" \
21752181 /etc/nginx/nginx.conf
21762182
2177- # https://github.com/ustclug/docker-gitlab/issues/4
2178- echo " Adding nginx to ${GITLAB_USER} group..."
2179- usermod -a -G ${GITLAB_USER} nginx
2180-
21812183 nginx_configure_gitlab
21822184 nginx_configure_gitlab_ci
21832185 nginx_configure_gitlab_registry
You can’t perform that action at this time.
0 commit comments