From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NUMERIC_HTTP_ADDR,URIBL_BLOCKED, WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1689262146; bh=XdQo//Xe8KZzHoN/mtyre5keenIgPajLPtUdl2p0sFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mvGHM360BKCB4IHm4XfqT9QzEOci6Vi7FM3RMyfS6fwTFZFteyC5OJmBgP5NWVEHm zME9YhTUi+5j7fnEnJqIeC4pAn1XerPt1cfYZuKeybUvLm0Bg54e5o8bHDVmK1nR2o QfdA1F6JQEnA7DcQB6CCbTELPkE3e0XuY4/ZfsEKFyUlj8gAT59DNtQ9SmuJ4jWa+K tBEyNCoc6H0/QaTJ2U7hFG9apBjxHuwOCnYcawcH4Np2GOTvbX+TPy/d+PX5qL3ILD E9cQjkoKS2jcTvU4KP5jfke9oBOtHR4qPVcAdaxbXDIylRWK5h92qzldPLQ5AEl4i+ Z9SMq4BiAIhHg== Received: from server-haj002.. (server-haj002.gnuweeb.org [45.83.104.102]) by gnuweeb.org (Postfix) with ESMTPSA id 5E09E24A9B0; Thu, 13 Jul 2023 22:29:05 +0700 (WIB) From: Alviro Iskandar Setiawan To: Ammar Faizi , Michael William Jonathan Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH server-haj002 v1 6/6] setup.txt: Add elk setup instructions Date: Thu, 13 Jul 2023 17:28:50 +0200 Message-Id: <20230713152850.5565-7-alviro.iskandar@gnuweeb.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230713152850.5565-1-alviro.iskandar@gnuweeb.org> References: <20230713152850.5565-1-alviro.iskandar@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Signed-off-by: Alviro Iskandar Setiawan --- setup.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/setup.txt b/setup.txt index ea10b8d..36240ad 100644 --- a/setup.txt +++ b/setup.txt @@ -30,6 +30,7 @@ mkswap swap0.swo; ### Set crontab PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin @reboot /usr/bin/bash /opt/server/init_net.sh +@reboot /usr/bin/bash /opt/server/elk/start.sh @reboot /usr/sbin/swapon /opt/server/swap0.swo @@ -38,6 +39,8 @@ sudo make-ssl-cert generate-default-snakeoil --force-overwrite ### Create a nginx vhost config +# For /etc/nginx/sites-enabled/social.gnuweeb.org: + map $http_upgrade $connection_upgrade { default upgrade; '' close; @@ -67,6 +70,22 @@ server { } } +# For /etc/nginx/sites-enabled/elk.gnuweeb.org: +server { + listen 80; + listen [::]:80; + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name elk.gnuweeb.org; + ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; + ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key; + + location / { + proxy_set_header "Host" "elk.gnuweeb.org"; + proxy_pass http://127.0.0.1:5314; + } +} ### Run mastodon -- Alviro Iskandar Setiawan