aboutsummaryrefslogtreecommitdiff
path: root/www/seahub
diff options
context:
space:
mode:
authorRichard Gallamore <ultima@FreeBSD.org>2019-06-09 05:47:27 +0000
committerRichard Gallamore <ultima@FreeBSD.org>2019-06-09 05:47:27 +0000
commitd2c46cef0528c92d431bcd91284fb4d8f3ef39e7 (patch)
tree5029638dc6803c17232e3781f1f77ef6714c1919 /www/seahub
parente66ead1f790e18ebecfbb137a536bbab82a0eecf (diff)
downloadports-d2c46cef0528c92d431bcd91284fb4d8f3ef39e7.tar.gz
ports-d2c46cef0528c92d431bcd91284fb4d8f3ef39e7.zip
Notes
Diffstat (limited to 'www/seahub')
-rw-r--r--www/seahub/Makefile2
-rw-r--r--www/seahub/files/seahub.in6
2 files changed, 4 insertions, 4 deletions
diff --git a/www/seahub/Makefile b/www/seahub/Makefile
index 9fd84100fe83..3aefc46439fe 100644
--- a/www/seahub/Makefile
+++ b/www/seahub/Makefile
@@ -4,7 +4,7 @@ PORTNAME= seahub
DISTVERSIONPREFIX= v
DISTVERSION= ${SEAHUB_VER}
DISTVERSIONSUFFIX= -pro
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MAINTAINER= ultima@FreeBSD.org
diff --git a/www/seahub/files/seahub.in b/www/seahub/files/seahub.in
index 1633af0bf9dc..50e6bccf3bcd 100644
--- a/www/seahub/files/seahub.in
+++ b/www/seahub/files/seahub.in
@@ -29,7 +29,7 @@
# seafile_logdir (str): Set to "" by default will use the path
# %%PREFIX%%/%%HAIWENDIR%%/logs.
# Set it to a different path.
-# seahub_host (int): Default is 127.0.0.1.
+# seahub_host (int): Default is 0.0.0.0.
# seahub_port (int): Default is 8000.
. /etc/rc.subr
@@ -53,7 +53,7 @@ clearsessions_cmd="seahub_clearsessions"
: ${seafile_conf:="%%PREFIX%%/%%HAIWENDIR%%/conf"}
: ${seafile_datadir:="`cat ${seafile_ccnet}/seafile.ini 2>/dev/null`"}
: ${seafile_logdir:="%%PREFIX%%/%%HAIWENDIR%%/logs"}
-: ${seahub_host:="127.0.0.1"}
+: ${seahub_host:="0.0.0.0"}
: ${seahub_port:="8000"}
manage_py=${seafile_path}/seahub/manage.py
@@ -123,7 +123,7 @@ seahub_start()
check_required_before;
before_start;
echo "Starting seahub at port ${seahub_port} ..."
- su -m "${seafile_user}" -c "$command \"${gunicorn_exe}\" seahub.wsgi:application -c \"${gunicorn_conf}\" -b \"0.0.0.0:${seahub_port}\" --preload --chdir \"$seafile_path/seahub\""
+ su -m "${seafile_user}" -c "$command \"${gunicorn_exe}\" seahub.wsgi:application -c \"${gunicorn_conf}\" -b \"${seahub_host}:${seahub_port}\" --preload --chdir \"$seafile_path/seahub\""
# Ensure seahub is started successfully
sleep 5