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:
authorKamil Trzciński <ayufan@ayufan.eu>2017-01-20 14:59:46 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2017-01-20 14:59:46 +0300
commitbc4aa822bff4ec2a3a3fdb1daa915782331ad08a (patch)
treea0ddb73af7b8a56efaf226ddfdbc658b6b7c7388 /README.md
parent753b2973685a76457c47f989a5371e4c9696ea2f (diff)
parentb8ece518d72e0e1bfef8b75cc6180298c5154ec3 (diff)
Merge branch 'listen-on-multiple-ips' into 'master'
Allow -listen-http, -listen-https and -listen-proxy to be given more than once See merge request !6
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index cf508cfd..087a2152 100644
--- a/README.md
+++ b/README.md
@@ -60,6 +60,18 @@ go build
sudo ./gitlab-pages -listen-http ":80" -pages-root path/to/gitlab/shared/pages -pages-domain example.com -daemon-uid 1000 -daemon-gid 1000
```
+### Listen on multiple ports
+
+Each of the `listen-http`, `listen-https` and `listen-proxy` arguments can be provided multiple times. Gitlab Pages will accept connections to them all.
+
+Example:
+```
+go build
+./gitlab-pages -listen-http "10.0.0.1:8080" -listen-https "[fd00::1]:8080" -pages-root path/to/gitlab/shared/pages -pages-domain example.com
+```
+
+This is most useful in dual-stack environments (IPv4+IPv6) where both Gitlab Pages and another HTTP server have to co-exist on the same server.
+
### License
MIT