GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [PATCH server-haj002 v1 0/6] Server update and new service elk.gnuweeb.org
@ 2023-07-13 15:28 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
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Alviro Iskandar Setiawan @ 2023-07-13 15:28 UTC (permalink / raw)
  To: Ammar Faizi, Michael William Jonathan
  Cc: Alviro Iskandar Setiawan, GNU/Weeb Mailing List

Greetings,

This series contains server-haj002 fixes and a new service called
elk.gnuweeb.org as requested by chief in https://t.me/GNUWeeb/807595

elk is a nimble Mastodon web client. While it's currently not a
widely used app, it's already quite usable. More detail here:
https://github.com/elk-zone/elk

The elk service for GNU/Weeb is now up and ready to use at:

  https://elk.gnuweeb.org

There are 6 pathces in this series, summary:

# 1. Allow trusted traffic from/to local addresses.
Simplify iptables rules by allowing INPUT traffic from these CIDR
ranges:

  ip:
    10.0.0.0/8
    192.168.0.0/16
    172.16.0.0/12

  ip6:
    fc00::/7

Also, allow FORWARD from/to them.

# 2. Properly enable IPv6 for the masto-net network.
The IPv6 was not properly enabled. Enable it by adding
"enable_ipv6: true" in the network section in the docker-compose
file.

# 3. Fix DNS resolution error.
The default DNS system is not properly configured in this environment
and it leads to DNS resolution error. Provide custom resolv.conf file
and hosts file to satisfy the need of mastodon container.

The custom resolv.conf script will use the host IP address as the DNS
server. Therefore, the host must provide a working DNS server. It can
simply be done by adding these two lines to /etc/systemd/resolved.conf

   DNSStubListenerExtra=0.0.0.0:53
   DNSStubListenerExtra=[::]:53

# 4. Move data directory inside the git project
Move data directory inside the git project to allow the docker-comose.yml
file to use relative path. Then sync the docker-compose file with the
prod file (add hostname entry and DNS related changes).

# 5. Add elk server using docker.
Bash script to build and run the elk service using docker.

# 6. Add elk setup instructions.
Note crontab setup and nginx vhost config.

Signed-off-by: Alviro Iskandar Setiawan <[email protected]>
---

Alviro Iskandar Setiawan (6):
  init_net: Allow trusted traffic from/to local addresses
  mastodon: Enable IPv6 for the masto-net network
  mastodon: Fix DNS resolution error
  mastodon: Move data directory inside the git project
  Add elk server using docker
  setup.txt: Add elk setup instructions

 .gitmodules                         |  3 +++
 elk/.gitignore                      |  2 ++
 elk/docker-compose.yml              | 30 +++++++++++++++++++++++++++++
 elk/start.sh                        | 23 ++++++++++++++++++++++
 init_net.sh                         | 26 ++++++++++++++++++++++++-
 mastodon/.gitignore                 |  3 ++-
 mastodon/docker-compose.example.yml | 19 ++++++++++++------
 mastodon/docker-mastodon            |  1 +
 mastodon/hosts                      |  8 ++++++++
 mastodon/resolv.conf                |  3 +++
 setup.txt                           | 19 ++++++++++++++++++
 11 files changed, 129 insertions(+), 8 deletions(-)
 create mode 100644 .gitmodules
 create mode 100644 elk/.gitignore
 create mode 100644 elk/docker-compose.yml
 create mode 100644 elk/start.sh
 create mode 160000 mastodon/docker-mastodon
 create mode 100644 mastodon/hosts
 create mode 100644 mastodon/resolv.conf


base-commit: 9fb75192df6b55699b8716199b16b42d0b82e860
-- 
Alviro Iskandar Setiawan


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-07-14 10:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH server-haj002 v1 6/6] setup.txt: Add elk setup instructions Alviro Iskandar Setiawan
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox