Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-warpzone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infrastruktur
ansible-warpzone
Commits
06839e4a
Commit
06839e4a
authored
3 months ago
by
void
Browse files
Options
Downloads
Patches
Plain Diff
settings for docker registry to work again
#49
parent
9a44dd00
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
webserver/docker_gitlab/templates/conf/gitlab.rb
+39
-18
39 additions, 18 deletions
webserver/docker_gitlab/templates/conf/gitlab.rb
webserver/docker_gitlab/templates/docker-compose.yml
+2
-0
2 additions, 0 deletions
webserver/docker_gitlab/templates/docker-compose.yml
with
41 additions
and
18 deletions
webserver/docker_gitlab/templates/conf/gitlab.rb
+
39
−
18
View file @
06839e4a
...
...
@@ -757,6 +757,9 @@ registry_external_url 'https://{{ domain_registry }}'
# gitlab_rails['registry_port'] = "5005"
# gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
gitlab_rails
[
'registry_enabled'
]
=
true
#gitlab_rails['registry_host'] = "{{ domain_registry }}"
#gitlab_rails['registry_port'] = ""
#gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
# Notification secret, it's used to authenticate notification requests to GitLab application
# You only need to change this when you use external Registry service, otherwise
...
...
@@ -765,12 +768,15 @@ gitlab_rails['registry_enabled'] = true
###! **Do not change the following 3 settings unless you know what you are
###! doing**
#
gitlab_rails['registry_api_url'] = "http://localhost:5000"
gitlab_rails
[
'registry_api_url'
]
=
"http://localhost:5000"
# gitlab_rails['registry_key_path'] = "/var/opt/gitlab/gitlab-rails/certificate.key"
# gitlab_rails['registry_issuer'] = "omnibus-gitlab-issuer"
### Settings used by Registry application
registry
[
'enable'
]
=
true
registry
[
'registry_http_addr'
]
=
"0.0.0.0:5000"
# registry['log_directory'] = "/var/log/gitlab/registry"
# registry['username'] = "registry"
# registry['group'] = "registry"
# registry['uid'] = nil
...
...
@@ -792,23 +798,6 @@ registry['enable'] = true
# registry['autoredirect'] = false
# registry['compatibility_schema1_enabled'] = false
### Registry Database
### see https://gitlab.warpzone.ms/help/administration/packages/container_registry_metadata_database.md
registry
[
'database'
]
=
{
'enabled'
=>
false
,
'host'
=>
'localhost'
,
'port'
=>
5432
,
'user'
=>
'registry-database-user'
,
'password'
=>
'registry-database-password'
,
'dbname'
=>
'registry-database-name'
,
'sslmode'
=>
'require'
,
'sslcert'
=>
'/path/to/cert.pem'
,
'sslkey'
=>
'/path/to/private.key'
,
'sslrootcert'
=>
'/path/to/ca.pem'
}
### Registry backend storage
###! Docs: https://docs.gitlab.com/ee/administration/packages/container_registry.html#configure-storage-for-the-container-registry
# registry['storage'] = {
...
...
@@ -824,6 +813,19 @@ registry['database'] = {
# }
# }
# registry['storage'] = {
# 'filesystem' => {
# 'rootdirectory' => "/var/opt/gitlab/gitlab-rails/shared/registry"
# },
# 'delete' => {
# 'enabled' => true
# },
# 'cache' => {
# 'blobdescriptor' => 'inmemory'
# }
# }
### Registry notifications endpoints
# registry['notifications'] = [
# {
...
...
@@ -1317,6 +1319,10 @@ registry['database'] = {
# nginx['redirect_http_to_https'] = false
# nginx['redirect_http_to_https_port'] = 80
# Increase maximal header size, needed for registry to work
nginx
[
'client_max_body_size'
]
=
"500m"
nginx
[
'large_client_header_buffers'
]
=
"8 32k"
##! Most root CA's are included by default
# nginx['ssl_client_certificate'] = "/etc/gitlab/ssl/ca.crt"
...
...
@@ -1772,6 +1778,7 @@ registry_nginx['enable'] = true
registry_nginx
[
'listen_port'
]
=
5005
registry_nginx
[
'listen_https'
]
=
false
registry_nginx
[
'proxy_pass'
]
=
"http://localhost:5000"
registry_nginx
[
'proxy_set_headers'
]
=
{
"Host"
=>
"$http_host"
,
...
...
@@ -1781,6 +1788,20 @@ registry_nginx['proxy_set_headers'] = {
"X-Forwarded-Ssl"
=>
"on"
}
# Increase maximal header size, needed for registry to work
registry_nginx
[
'client_max_body_size'
]
=
"500m"
registry_nginx
[
'large_client_header_buffers'
]
=
"8 32k"
# Konfiguriere zusätzliche Nginx-Parameter für Registry
registry_nginx
[
'custom_gitlab_server_config'
]
=
"
client_header_buffer_size 64k;
proxy_buffer_size 64k;
proxy_buffers 8 64k;
proxy_busy_buffers_size 64k;
proxy_connect_timeout 300s;
proxy_read_timeout 300s;
"
################################################################################
## Prometheus
##! Docs: https://docs.gitlab.com/ee/administration/monitoring/prometheus/
...
...
This diff is collapsed.
Click to expand it.
webserver/docker_gitlab/templates/docker-compose.yml
+
2
−
0
View file @
06839e4a
...
...
@@ -25,6 +25,8 @@ services:
-
traefik.http.routers.{{ servicename }}_registry.entrypoints=websecure
-
traefik.http.routers.{{ servicename }}_registry.service={{ servicename }}_registry
-
traefik.http.services.{{ servicename }}_registry.loadbalancer.server.port=5005
-
traefik.http.middlewares.registry-headers.headers.customRequestHeaders.Host={{ domain_registry }}
-
traefik.http.routers.{{ servicename }}_registry.middlewares=registry-headers
networks
:
-
default
-
web
...
...
This diff is collapsed.
Click to expand it.
void
@void
mentioned in issue
#49 (closed)
·
3 months ago
mentioned in issue
#49 (closed)
mentioned in issue #49
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment