반응형
Step 1. 설정변경
vi /etc/gitlab/gitlab.rb
|
################################################################################
## GitLab NGINX
##! Docs: https://docs.gitlab.com/omnibus/settings/nginx.html
################################################################################
# nginx['enable'] = true
# 주석해제해서 nginx 사용안함 설정.
nginx['enable'] = false
# gitlab_workhorse['shutdown_timeout'] = nil # gitlab_workhorse['listen_network'] = "unix" # gitlab_workhorse['listen_umask'] = 000 # gitlab_workhorse['listen_addr'] = "/var/opt/gitlab/gitlab-workhorse/sockets/socket" # gitlab_workhorse['auth_backend'] = "http://localhost:8080" # 아래 두줄 추가. gitlab_workhorse['listen_network'] = "tcp" gitlab_workhorse['listen_addr'] = "127.0.0.1:8181" # 아파치가 다른 서버라면 # gitlab_workhorse['listen_addr'] = "0.0.0.0:8181" |
Step 2.설정적용
gitlab-ctl reconfigure
|
Step 3.아파치설정
참조 : https://gitlab.com/gitlab-org/gitlab-recipes/-/blob/master/web-server/apache/gitlab-apache24.conf
<VirtualHost *:80>
ServerAdmin 관리자이메일
DocumentRoot "/opt/gitlab/embedded/service/gitlab-rails/public"
ServerName 도메인_혹은_IP
ServerAlias 도메인_혹은_IP
ErrorLog "logs/도메인_혹은_IP-error_log"
CustomLog "logs/도메인_혹은_IP-access_log" common
ProxyRequests Off
ProxyPreserveHost On
ProxyPassReverse / http://localhost:8181/
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA]
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
|
반응형
'Tool' 카테고리의 다른 글
gitlab 버전 업그레이드 순서. (0) | 2022.12.13 |
---|---|
STS(Eclipse) 4.16.1 - Rename refactoring not working (0) | 2022.12.08 |
깃허브 + 소스트리 토큰 인증 (Github + SourceTree Token authentication) (0) | 2022.03.27 |
Gitlab install CentOS7 - 2021.10.18 (0) | 2021.10.18 |
STS JSP Editor에서 javascript highlighting:: 4.9.0.RELEASE (2020.02.24) (0) | 2021.02.24 |
Sql developer 설치 (버전 20.4 :: 2021.02) (0) | 2021.02.18 |
소스트리 비밀번호 초기화 ( 버전 3.4.2 ) (0) | 2021.02.18 |
eclipse plugin "camel case" <-> "snake case" (0) | 2021.01.26 |