Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
slapos
Commits
c23f1725
Commit
c23f1725
authored
Aug 11, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab: Slapos'ify gitlab config updates
Do not use container_registry and registry_* options
parent
7c80aae3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
10 deletions
+15
-10
software/gitlab/software.cfg
software/gitlab/software.cfg
+4
-4
software/gitlab/template/gitlab.yml.in
software/gitlab/template/gitlab.yml.in
+4
-1
software/gitlab/template/nginx.conf.in
software/gitlab/template/nginx.conf.in
+4
-2
software/gitlab/template/rack_attack.rb.in
software/gitlab/template/rack_attack.rb.in
+2
-2
software/gitlab/template/smtp_settings.rb.in
software/gitlab/template/smtp_settings.rb.in
+1
-1
No files found.
software/gitlab/software.cfg
View file @
c23f1725
...
@@ -244,7 +244,7 @@ md5sum = a9cb347f60aad3465932fd36cd4fe25d
...
@@ -244,7 +244,7 @@ md5sum = a9cb347f60aad3465932fd36cd4fe25d
[gitlab.yml.in]
[gitlab.yml.in]
<= download-template
<= download-template
md5sum =
735a78d0733fd6617d3b5f3d91bfae8c
md5sum =
a403f22950c7d6c5e34ebec6abd6cda9
[instance-gitlab.cfg.in]
[instance-gitlab.cfg.in]
<= download-file
<= download-file
...
@@ -260,11 +260,11 @@ md5sum = a11b50d2ff2b1fa842ba4aa20041e2fe
...
@@ -260,11 +260,11 @@ md5sum = a11b50d2ff2b1fa842ba4aa20041e2fe
[nginx.conf.in]
[nginx.conf.in]
<= download-template
<= download-template
md5sum =
7da68dba86fff79eb93c27aa1aaf1055
md5sum =
de5a16a2ee7925c7dfbc40644ace9256
[rack_attack.rb.in]
[rack_attack.rb.in]
<= download-template
<= download-template
md5sum =
bc1a7c1e83b7329d97bff6724f2bec3e
md5sum =
3f876b3baafd696f47d027ac247f84e0
[resque.yml.in]
[resque.yml.in]
<= download-template
<= download-template
...
@@ -272,7 +272,7 @@ md5sum = 7c89a730889e3224548d9abe51a2d719
...
@@ -272,7 +272,7 @@ md5sum = 7c89a730889e3224548d9abe51a2d719
[smtp_settings.rb.in]
[smtp_settings.rb.in]
<= download-template
<= download-template
md5sum =
d66a424516ffacea34303e2f512a7d94
md5sum =
1b9dc4731619d021eb070d9d43e60f68
[unicorn.rb.in]
[unicorn.rb.in]
<= download-template
<= download-template
...
...
software/gitlab/template/gitlab.yml.in
View file @
c23f1725
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# see:
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
# (last updated for omnibus-gitlab 8.
7.9+ce.1-0-gf589ad7
)
# (last updated for omnibus-gitlab 8.
8.7+ce.1-0-g51164768
)
{% from 'macrolib.cfg.in' import cfg, cfg_https, external_url with context %}
{% from 'macrolib.cfg.in' import cfg, cfg_https, external_url with context %}
...
@@ -86,6 +86,7 @@ production: &base
...
@@ -86,6 +86,7 @@ production: &base
wiki: {{ cfg('default_projects_features.wiki') }}
wiki: {{ cfg('default_projects_features.wiki') }}
snippets: {{ cfg('default_projects_features.snippets') }}
snippets: {{ cfg('default_projects_features.snippets') }}
builds: false {# builds not supported yet <%= @gitlab_default_projects_features_builds %> #}
builds: false {# builds not supported yet <%= @gitlab_default_projects_features_builds %> #}
{# container_registry: <%= @gitlab_default_projects_features_container_registry %> #}
## Webhook settings
## Webhook settings
# Number of seconds to wait for HTTP response after sending webhook HTTP POST request (default: 10)
# Number of seconds to wait for HTTP response after sending webhook HTTP POST request (default: 10)
...
@@ -145,6 +146,7 @@ production: &base
...
@@ -145,6 +146,7 @@ production: &base
storage_path: <%= @lfs_storage_path %>
storage_path: <%= @lfs_storage_path %>
#}
#}
{# we do not support Container Registry
## Container Registry
## Container Registry
registry:
registry:
enabled: <%= @registry_enabled %>
enabled: <%= @registry_enabled %>
...
@@ -154,6 +156,7 @@ production: &base
...
@@ -154,6 +156,7 @@ production: &base
path: <%= @registry_path %>
path: <%= @registry_path %>
key: <%= @registry_key_path %>
key: <%= @registry_key_path %>
issuer: <%= @registry_issuer %>
issuer: <%= @registry_issuer %>
#}
{# we do not support Pages
{# we do not support Pages
## GitLab Pages (EE only)
## GitLab Pages (EE only)
...
...
software/gitlab/template/nginx.conf.in
View file @
c23f1725
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# see:
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab-ssl
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab-ssl
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/nginx.conf.erb
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/nginx.conf.erb
# (last updated for omnibus-gitlab 8.
7.9+ce.1-0-gf589ad7
)
# (last updated for omnibus-gitlab 8.
8.7+ce.1-0-g51164768
)
{% from 'macrolib.cfg.in' import cfg with context %}
{% from 'macrolib.cfg.in' import cfg with context %}
...
@@ -53,6 +53,8 @@ http {
...
@@ -53,6 +53,8 @@ http {
{# we don't need: ci, pages, mattermost
{# we don't need: ci, pages, mattermost
include <%= @gitlab_ci_http_config %>
include <%= @gitlab_ci_http_config %>
include <%= @gitlab_pages_http_config %>;
include <%= @gitlab_pages_http_config %>;
include <%= @gitlab_mattermost_http_config %>
include <%= @gitlab_mattermost_http_config %>;
include <%= @gitlab_registry_http_config %>;
<%= @custom_nginx_config %>
#}
#}
}
}
software/gitlab/template/rack_attack.rb.in
View file @
c23f1725
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# see:
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/initializers/rack_attack.rb.example
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/initializers/rack_attack.rb.example
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/rack_attack.rb.erb
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/rack_attack.rb.erb
# (last updated for omnibus-gitlab 8.
7.9+ce.1-0-gf589ad7
)
# (last updated for omnibus-gitlab 8.
8.7+ce.1-0-g51164768
)
{% from 'macrolib.cfg.in' import cfg with context %}
{% from 'macrolib.cfg.in' import cfg with context %}
...
@@ -27,7 +27,7 @@ paths_regex = Regexp.union(paths_to_be_protected.map { |path| /\A#{Regexp.escape
...
@@ -27,7 +27,7 @@ paths_regex = Regexp.union(paths_to_be_protected.map { |path| /\A#{Regexp.escape
rack_attack_enabled = Gitlab.config.rack_attack.git_basic_auth['enabled']
rack_attack_enabled = Gitlab.config.rack_attack.git_basic_auth['enabled']
unless Rails.env.test? || !rack_attack_enabled
unless Rails.env.test? || !rack_attack_enabled
Rack::Attack.throttle('protected paths', limit:
<%= @rate_limit_requests_per_period %>, period: <%= @rate_limit_period %>
.seconds) do |req|
Rack::Attack.throttle('protected paths', limit:
{{ cfg('rate_limit_requests_per_period') }}, period: {{ cfg('rate_limit_period') }}
.seconds) do |req|
if req.post? && req.path =~ paths_regex
if req.post? && req.path =~ paths_regex
req.ip
req.ip
end
end
...
...
software/gitlab/template/smtp_settings.rb.in
View file @
c23f1725
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# see:
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/initializers/smtp_settings.rb.sample
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/initializers/smtp_settings.rb.sample
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/smtp_settings.rb.erb
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/smtp_settings.rb.erb
# (last updated for omnibus-gitlab 8.
7.9+ce.1-0-gf589ad7
)
# (last updated for omnibus-gitlab 8.
8.7+ce.1-0-g51164768
)
{% from 'macrolib.cfg.in' import cfg, cfg_bool with context %}
{% from 'macrolib.cfg.in' import cfg, cfg_bool with context %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment