This commit is contained in:
EXP
2021-05-20 22:44:20 +08:00
commit d68fc30935
24 changed files with 457 additions and 0 deletions

18
gitlab/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
# -----------------------------------------------------------------------------
# CVE Ranger :
# https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22192.json
# Gitlab Docker :
# https://hub.docker.com/r/gitlab/gitlab-ee/tags
# -----------------------------------------------------------------------------
FROM gitlab/gitlab-ee:13.2.0-ee.0
# FROM gitlab/gitlab-ee:13.8.0-ee.0
# FROM gitlab/gitlab-ee:13.9.0-ee.0
ADD ./keys/license_key.pub /opt/gitlab/embedded/service/gitlab-rails/.license_encryption_key.pub
# RUN sed -i "s@|| STARTER_PLAN@|| ULTIMATE_PLAN@g" /opt/gitlab/embedded/service/gitlab-rails/ee/app/models/license.rb
# RUN gitlab-ctl reconfigure
EXPOSE 443
EXPOSE 80
EXPOSE 22

0
gitlab/config/.keep Normal file
View File

0
gitlab/data/.keep Normal file
View File

0
gitlab/keys/.keep Normal file
View File

0
gitlab/logs/.keep Normal file
View File

View File

@@ -0,0 +1,40 @@
# This file is managed by gitlab-ctl. Manual changes will be
# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
# and run `sudo gitlab-ctl reconfigure`.
## Lines starting with two hashes (##) are comments with information.
## Lines starting with one hash (#) are configuration parameters that can be uncommented.
##
###################################
## configuration ##
###################################
server {
listen 8000;
server_name 127.0.0.1;
server_tokens off; ## Don't show the nginx version number, a security best practice
## Disable symlink traversal
disable_symlinks on;
## Real IP Module Config
## http://nginx.org/en/docs/http/ngx_http_realip_module.html
## Individual nginx logs for this GitLab vhost
access_log /var/log/gitlab/nginx/gitlab_pages_access.log gitlab_access;
error_log /var/log/gitlab/nginx/gitlab_pages_error.log;
# Pass everything to pages daemon
location / {
index index.html;
root /var/opt/gitlab/gitlab-rails/shared/pages;
}
# Define custom error pages
error_page 403 /403.html;
error_page 404 /404.html;
}