From da93d34c0df3f9b2aa699b5911817459239efe98 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Wed, 29 Nov 2017 22:21:32 +0100 Subject: [PATCH] Enable CTS IPv6, forcefully remove sql scripts --- cts.sh | 4 ++-- cts/etc/nginx/sites-available/cts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cts.sh b/cts.sh index ec72873..9a9867d 100755 --- a/cts.sh +++ b/cts.sh @@ -16,7 +16,7 @@ virtualenv --no-site-packages --python=/usr/bin/python2.7 /srv/cts export CTS_PWD=$(head -c 18 /dev/urandom | base64) envsubst <${SOURCE_DIR}/cts/tmp/cts-createdb.sql >/tmp/cts-createdb.sql sudo -u postgres psql -f /tmp/cts-createdb.sql -rm /tmp/cts-createdb.sql +rm -f /tmp/cts-createdb.sql # Configure CTS export CTS_SECRET=$(head -c 26 /dev/urandom | base64) @@ -45,7 +45,7 @@ export CTS_ADMIN_HASH=$(cd /srv/cts && DJANGO_SETTINGS_MODULE=cts.settings.spott export CTS_ADMIN_SECRET=$(head -c 12 /dev/urandom | sha256sum | cut -c1-13) envsubst <${SOURCE_DIR}/cts/tmp/cts-adminpwd.sql >/tmp/cts-adminpwd.sql sudo -u postgres psql -f /tmp/cts-adminpwd.sql cts -rm /tmp/cts-adminpwd.sql +rm -f /tmp/cts-adminpwd.sql # Create CTS OS user adduser --system --group --home /srv/cts --shell /bin/false cts diff --git a/cts/etc/nginx/sites-available/cts b/cts/etc/nginx/sites-available/cts index 0e38569..3b116a8 100644 --- a/cts/etc/nginx/sites-available/cts +++ b/cts/etc/nginx/sites-available/cts @@ -1,5 +1,6 @@ server { listen 8004 ssl http2; + listen [::]:8004 ssl http2; root /srv/cts/cts;