From: Alviro Iskandar Setiawan <[email protected]>
To: Ammar Faizi <[email protected]>,
Michael William Jonathan <[email protected]>
Cc: Alviro Iskandar Setiawan <[email protected]>,
GNU/Weeb Mailing List <[email protected]>
Subject: [PATCH server-haj002 v1 6/6] setup.txt: Add elk setup instructions
Date: Thu, 13 Jul 2023 17:28:50 +0200 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
Signed-off-by: Alviro Iskandar Setiawan <[email protected]>
---
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
next prev parent reply other threads:[~2023-07-13 15:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-13 15:28 [PATCH server-haj002 v1 0/6] Server update and new service elk.gnuweeb.org Alviro Iskandar Setiawan
2023-07-13 15:28 ` [PATCH server-haj002 v1 1/6] init_net: Allow trusted traffic from/to local addresses Alviro Iskandar Setiawan
2023-07-13 15:28 ` [PATCH server-haj002 v1 2/6] mastodon: Enable IPv6 for the masto-net network Alviro Iskandar Setiawan
2023-07-13 15:28 ` [PATCH server-haj002 v1 3/6] mastodon: Fix DNS resolution error Alviro Iskandar Setiawan
2023-07-13 15:28 ` [PATCH server-haj002 v1 4/6] mastodon: Move data directory inside the git project Alviro Iskandar Setiawan
2023-07-13 15:28 ` [PATCH server-haj002 v1 5/6] Add elk server using docker Alviro Iskandar Setiawan
2023-07-13 15:28 ` Alviro Iskandar Setiawan [this message]
2023-07-13 15:42 ` [PATCH server-haj002 v1 0/6] Server update and new service elk.gnuweeb.org Ammar Faizi
2023-07-13 16:47 ` Alviro Iskandar Setiawan
2023-07-13 16:54 ` Ammar Faizi
2023-07-14 2:25 ` Michael William Jonathan
2023-07-14 10:32 ` Alviro Iskandar Setiawan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox