Skip to content
Snippets Groups Projects
Commit a1e6f1e75c34 authored by Hordur Freyr Yngvason's avatar Hordur Freyr Yngvason
Browse files

Expand allowed gitlab_kas['internal_api_listen_network']

In particular, we want to add support for unix sockets to simplify
single-node configurations where there is a proxy.

Changelog: changed
parent ccdb66233082
No related branches found
No related tags found
2 merge requests!102heptapod#1237: making 0.38 the new oldstable,!92Merging upstream 15.10.0+ce.0
......@@ -74,6 +74,8 @@
network = gitlab_kas_attr('internal_api_listen_network')
case network
when 'tcp'
when 'unix'
scheme = 'unix'
when 'tcp', 'tcp4', 'tcp6'
scheme = 'grpc'
else
......@@ -78,6 +80,6 @@
scheme = 'grpc'
else
raise "gitlab_kas['internal_api_listen_network'] should be 'tcp' got '#{network}'"
raise "gitlab_kas['internal_api_listen_network'] should be 'tcp', 'tcp4', 'tcp6' or 'unix' got '#{network}'"
end
address = gitlab_kas_attr('internal_api_listen_address')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment