Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3d12f073
Commit
3d12f073
authored
Jul 08, 2019
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE-EE parity for files in config/initializers
parent
9f677359
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
2 deletions
+31
-2
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+1
-0
config/initializers/console_message.rb
config/initializers/console_message.rb
+11
-2
config/initializers/health_check.rb
config/initializers/health_check.rb
+6
-0
config/initializers/sidekiq.rb
config/initializers/sidekiq.rb
+13
-0
No files found.
config/initializers/1_settings.rb
View file @
3d12f073
...
...
@@ -76,6 +76,7 @@ Gitlab.ee do
Settings
[
'smartcard'
]
||=
Settingslogic
.
new
({})
Settings
.
smartcard
[
'enabled'
]
=
false
if
Settings
.
smartcard
[
'enabled'
].
nil?
Settings
.
smartcard
[
'client_certificate_required_port'
]
=
3444
if
Settings
.
smartcard
[
'client_certificate_required_port'
].
nil?
Settings
.
smartcard
[
'required_for_git_access'
]
=
false
if
Settings
.
smartcard
[
'required_for_git_access'
].
nil?
end
Settings
[
'omniauth'
]
||=
Settingslogic
.
new
({})
...
...
config/initializers/console_message.rb
View file @
3d12f073
...
...
@@ -2,9 +2,18 @@
if
defined?
(
Rails
::
Console
)
# note that this will not print out when using `spring`
justify
=
15
puts
"-------------------------------------------------------------------------------------"
puts
'-'
*
80
puts
" GitLab:"
.
ljust
(
justify
)
+
"
#{
Gitlab
::
VERSION
}
(
#{
Gitlab
.
revision
}
)"
puts
" GitLab Shell:"
.
ljust
(
justify
)
+
"
#{
Gitlab
::
VersionInfo
.
parse
(
Gitlab
::
Shell
.
new
.
version
)
}
"
puts
"
#{
Gitlab
::
Database
.
human_adapter_name
}
:"
.
ljust
(
justify
)
+
Gitlab
::
Database
.
version
puts
"-------------------------------------------------------------------------------------"
Gitlab
.
ee
do
if
Gitlab
::
Geo
.
enabled?
puts
" Geo enabled:"
.
ljust
(
justify
)
+
'yes'
puts
" Geo server:"
.
ljust
(
justify
)
+
EE
::
GeoHelper
.
current_node_human_status
end
end
puts
'-'
*
80
end
config/initializers/health_check.rb
View file @
3d12f073
HealthCheck
.
setup
do
|
config
|
config
.
standard_checks
=
%w(database migrations cache)
config
.
full_checks
=
%w(database migrations cache)
Gitlab
.
ee
do
config
.
add_custom_check
(
'geo'
)
do
Gitlab
::
Geo
::
HealthCheck
.
new
.
perform_checks
end
end
end
config/initializers/sidekiq.rb
View file @
3d12f073
...
...
@@ -85,6 +85,19 @@ Sidekiq.configure_server do |config|
ActiveRecord
::
Base
.
establish_connection
(
db_config
)
Rails
.
logger
.
debug
(
"Connection Pool size for Sidekiq Server is now:
#{
ActiveRecord
::
Base
.
connection
.
pool
.
instance_variable_get
(
'@size'
)
}
"
)
Gitlab
.
ee
do
Gitlab
::
Mirror
.
configure_cron_job!
Gitlab
::
Geo
.
configure_cron_jobs!
if
Gitlab
::
Geo
.
geo_database_configured?
Rails
.
configuration
.
geo_database
[
'pool'
]
=
Sidekiq
.
options
[
:concurrency
]
Geo
::
TrackingBase
.
establish_connection
(
Rails
.
configuration
.
geo_database
)
Rails
.
logger
.
debug
(
"Connection Pool size for Sidekiq Server is now:
#{
Geo
::
TrackingBase
.
connection_pool
.
size
}
(Geo tracking database)"
)
end
end
# Avoid autoload issue such as 'Mail::Parsers::AddressStruct'
# https://github.com/mikel/mail/issues/912#issuecomment-214850355
Mail
.
eager_autoload!
...
...
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