diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-01-20 14:59:46 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-01-20 14:59:46 +0300 |
commit | bc4aa822bff4ec2a3a3fdb1daa915782331ad08a (patch) | |
tree | a0ddb73af7b8a56efaf226ddfdbc658b6b7c7388 /README.md | |
parent | 753b2973685a76457c47f989a5371e4c9696ea2f (diff) | |
parent | b8ece518d72e0e1bfef8b75cc6180298c5154ec3 (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.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |