diff options
author | Nick Thomas <nick@bytemark.co.uk> | 2016-05-07 15:01:46 +0300 |
---|---|---|
committer | Nick Thomas <me@ur.gs> | 2016-09-09 01:57:16 +0300 |
commit | e5d0aa9a1f8301b4e4359c0fd5cbc9d7d7ca3ffe (patch) | |
tree | 93429f60a4f97a697199c1f8ae40c32a11a12621 /README.md | |
parent | 6b6eed8c9c165d7e22b07daa486a8f5496ef722b (diff) |
Add documentation for providing -listen-http and friends multiple times.
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 |