Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2022-01-21 15:41:47 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-02-01 03:02:25 +0300
commit052a7fb36f4605634385f54c833db21a9edc6d67 (patch)
treec7083eedc04f13d9339a2a62255a9934a5b30c0e /internal
parentdbe3bdee2eafbef6229838c711c3aa9596a23ddb (diff)
refactor: stop passing file descriptors around and use net.Listen
Changelog: changed
Diffstat (limited to 'internal')
-rw-r--r--internal/config/config.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index c29fa65d..d5316bb2 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -20,18 +20,11 @@ type Config struct {
ArtifactsServer ArtifactsServer
Authentication Auth
GitLab GitLab
- Listeners Listeners
Log Log
Sentry Sentry
TLS TLS
Zip ZipServing
- // Fields used to share information between files. These are not directly
- // set by command line flags, but rather populated based on info from them.
- // ListenMetrics points to a file descriptor of a socket, whose address is
- // specified by `Config.General.MetricsAddress`.
- ListenMetrics uintptr
-
// These fields contain the raw strings passed for listen-http,
// listen-https, listen-proxy and listen-https-proxyv2 settings. It is used
// by appmain() to create listeners, and the pointers to these listeners
@@ -111,15 +104,6 @@ type GitLab struct {
EnableDisk bool
}
-// Listeners groups settings related to configuring various listeners
-// (HTTP, HTTPS, Proxy, HTTPSProxyv2)
-type Listeners struct {
- HTTP []uintptr
- HTTPS []uintptr
- Proxy []uintptr
- HTTPSProxyv2 []uintptr
-}
-
// Log groups settings related to configuring logging
type Log struct {
Format string
@@ -251,7 +235,6 @@ func loadConfig() (*Config, error) {
ListenHTTPSStrings: listenHTTPS,
ListenProxyStrings: listenProxy,
ListenHTTPSProxyv2Strings: listenHTTPSProxyv2,
- Listeners: Listeners{},
}
var err error