commit 84f0d7146b3f223390176883293b9cb250905854 (patch)
parent b8af8869f407cd6384831f8d55a9d703059f6670
Author: Alex Karle <alex@alexkarle.com>
Date: Sun, 9 May 2021 00:36:49 -0400
deploy: Modify rc.d service to only listen on localhost
Previously, it was possible to hit http://euchre.live:3000 . I don't
want to encourage HTTP usage, so this patch modifies the rc.d script to
only listen on localhost:3000 so that external users cannot access via
the plaintext port (must go through relayd on 443).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/euchre-service.sh b/bin/euchre-service.sh
@@ -5,7 +5,7 @@
INSTALL="/home/_euchre/prod-el"
# end config
-daemon="perl $INSTALL/gloat.pl daemon -m production"
+daemon="perl $INSTALL/gloat.pl daemon -m production -l http://127.0.0.1:3000"
daemon_user="_euchre"
. /etc/rc.d/rc.subr