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
aff9d6b9
Commit
aff9d6b9
authored
2 years ago
by
void
Browse files
Options
Downloads
Patches
Plain Diff
Container registry für Gitlab aktiviert
parent
5b055b4d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
site.yml
+2
-1
2 additions, 1 deletion
site.yml
webserver/docker_gitlab/templates/conf/gitlab.rb
+19
-4
19 additions, 4 deletions
webserver/docker_gitlab/templates/conf/gitlab.rb
webserver/docker_gitlab/templates/docker-compose.yml
+5
-0
5 additions, 0 deletions
webserver/docker_gitlab/templates/docker-compose.yml
with
26 additions
and
5 deletions
site.yml
+
2
−
1
View file @
aff9d6b9
...
...
@@ -135,7 +135,8 @@
-
{
role
:
webserver/docker_gitlab
,
tags
:
gitlab
,
servicename
:
"
gitlab"
,
domain
:
"
gitlab.warpzone.ms"
domain
:
"
gitlab.warpzone.ms"
,
domain_registry
:
"
gitlab-registry.warpzone.ms"
}
-
{
role
:
webserver/docker_icinga
,
tags
:
icinga
,
...
...
This diff is collapsed.
Click to expand it.
webserver/docker_gitlab/templates/conf/gitlab.rb
+
19
−
4
View file @
aff9d6b9
...
...
@@ -29,7 +29,7 @@
##! On AWS EC2 instances, we also attempt to fetch the public hostname/IP
##! address from AWS. For more details, see:
##! https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
external_url
'https://
gitlab.warpzone.ms
/'
external_url
'https://
{{ domain }}
/'
## Roles for multi-instance GitLab
##! The default is to have no roles enabled, which results in GitLab running as an all-in-one instance.
...
...
@@ -147,11 +147,13 @@ gitlab_rails['gitlab_username_changing_enabled'] = false
# gitlab_rails['gitlab_default_projects_features_snippets'] = true
# gitlab_rails['gitlab_default_projects_features_builds'] = true
# gitlab_rails['gitlab_default_projects_features_container_registry'] = true
gitlab_rails
[
'gitlab_default_projects_features_issues'
]
=
false
gitlab_rails
[
'gitlab_default_projects_features_merge_requests'
]
=
true
gitlab_rails
[
'gitlab_default_projects_features_wiki'
]
=
false
gitlab_rails
[
'gitlab_default_projects_features_snippets'
]
=
false
gitlab_rails
[
'gitlab_default_projects_features_builds'
]
=
false
gitlab_rails
[
'gitlab_default_projects_features_
issues
'
]
=
false
gitlab_rails
[
'gitlab_default_projects_features_
container_registry
'
]
=
false
### Automatic issue closing
###! See https://docs.gitlab.com/ee/customization/issue_closing.html for more
...
...
@@ -749,13 +751,14 @@ gitlab_rails['gitlab_shell_ssh_port'] = 444
##! Docs: https://docs.gitlab.com/ee/administration/container_registry.html
################################################################################
#
registry_external_url 'https://
registry.example.com
'
registry_external_url
'https://
{{ domain_registry }}
'
### Settings used by GitLab application
# gitlab_rails['registry_enabled'] = true
# gitlab_rails['registry_host'] = "registry.gitlab.example.com"
# gitlab_rails['registry_port'] = "5005"
# gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
gitlab_rails
[
'registry_enabled'
]
=
true
# 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
...
...
@@ -769,7 +772,7 @@ gitlab_rails['gitlab_shell_ssh_port'] = 444
# gitlab_rails['registry_issuer'] = "omnibus-gitlab-issuer"
### Settings used by Registry application
#
registry['enable'] = true
registry
[
'enable'
]
=
true
# registry['username'] = "registry"
# registry['group'] = "registry"
# registry['uid'] = nil
...
...
@@ -1728,6 +1731,7 @@ mattermost['enable'] = false
# Below you can find settings that are exclusive to "Registry NGINX"
# registry_nginx['enable'] = false
registry_nginx
[
'enable'
]
=
true
# registry_nginx['proxy_set_headers'] = {
# "Host" => "$http_host",
...
...
@@ -1741,6 +1745,17 @@ mattermost['enable'] = false
# it listens on this port
# registry_nginx['listen_port'] = 5050
registry_nginx
[
'listen_port'
]
=
5005
registry_nginx
[
'listen_https'
]
=
false
registry_nginx
[
'proxy_set_headers'
]
=
{
"Host"
=>
"$http_host"
,
"X-Real-IP"
=>
"$remote_addr"
,
"X-Forwarded-For"
=>
"$proxy_add_x_forwarded_for"
,
"X-Forwarded-Proto"
=>
"https"
,
"X-Forwarded-Ssl"
=>
"on"
}
################################################################################
## 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
+
5
−
0
View file @
aff9d6b9
...
...
@@ -17,9 +17,14 @@ services:
-
traefik.enable=true
-
traefik.http.routers.{{ servicename }}.rule=Host(`{{ domain }}`)
-
traefik.http.routers.{{ servicename }}.entrypoints=websecure
-
traefik.http.routers.{{ servicename }}.service={{ servicename }}
-
traefik.http.services.{{ servicename }}.loadbalancer.server.port=80
-
traefik.http.routers.{{ servicename }}.middlewares={{ servicename }}-cors-headers
-
traefik.http.middlewares.{{ servicename }}-cors-headers.headers.accesscontrolalloworiginlist=*
-
traefik.http.routers.{{ servicename }}_registry.rule=Host(`{{ domain_registry }}`)
-
traefik.http.routers.{{ servicename }}_registry.entrypoints=websecure
-
traefik.http.routers.{{ servicename }}_registry.service={{ servicename }}_registry
-
traefik.http.services.{{ servicename }}_registry.loadbalancer.server.port=5005
networks
:
-
default
-
web
...
...
This diff is collapsed.
Click to expand it.
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