[packages/gitlab-workhorse] add tcp listen example

glen glen at pld-linux.org
Sun Sep 4 13:26:47 CEST 2016


commit 46a30a034bd9b34704283a920f16f25fb4f1385e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 4 14:26:42 2016 +0300

    add tcp listen example

 gitlab-workhorse.service | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gitlab-workhorse.service b/gitlab-workhorse.service
index 8b7d6e2..f8fa4ac 100644
--- a/gitlab-workhorse.service
+++ b/gitlab-workhorse.service
@@ -8,7 +8,10 @@ Type=simple
 User=git
 Group=git
 WorkingDirectory=/usr/lib/gitlab
-ExecStart=/usr/sbin/gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr /var/run/gitlab/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 -authSocket /var/run/gitlab/gitlab.socket
+# listen on unix socket (nginx)
+ExecStart=/usr/sbin/gitlab-workhorse -listenUmask 0 -authBackend http://localhost:8080 -authSocket /var/run/gitlab/gitlab.socket -documentRoot /usr/lib/gitlab/public -listenNetwork unix -listenAddr /var/run/gitlab/gitlab-workhorse.socket
+# listen on tcp port (apache)
+#ExecStart=/usr/sbin/gitlab-workhorse -listenUmask 0 -authBackend http://localhost:8080 -authSocket /var/run/gitlab/gitlab.socket -documentRoot /usr/lib/gitlab/public -listenNetwork tcp  -listenAddr 0.0.0.0:8181
 Restart=on-failure
 
 [Install]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-workhorse.git/commitdiff/46a30a034bd9b34704283a920f16f25fb4f1385e



More information about the pld-cvs-commit mailing list