dot

packages and services management
Log | Files | Refs | README

commit 75ef576edd70632d745e98efd928b70fc868a738
parent 3bbfb8acc098290a6858954c1076e6b4a643566f
Author: root <mail@josuah.net>
Date:   Wed, 29 Nov 2017 10:17:31 +0100

updated ngircd conf

Diffstat:
Mbin/etc | 6+++++-
Mbin/tls | 7+++++++
Mdaemon/ngircd | 2+-
Mskel/ngircd/conf | 14+++++++-------
Mskel/ngircd/motd | 21++++++++-------------
5 files changed, 28 insertions(+), 22 deletions(-)

diff --git a/bin/etc b/bin/etc @@ -1,6 +1,8 @@ #!/bin/sh ETC=$(cd "${0%/*}/.." && pwd) +set -x + case $1 in (dot) cd "$ETC/dot" || exit 1 @@ -31,9 +33,11 @@ case $1 in git clone josuah@git.josuah.net:srv/git/notes.git ;; (setup) + echo 'test' + mkdir -p "$HOME/.config" [ -f "$ETC/cron/$2" ] && cat "$ETC/cron/$2" >> "$HOME/.config/cron" [ -f "$ETC/inet/$2" ] && cat "$ETC/inet/$2" >> "$HOME/.config/inet" - [ -f "$ETC/skel/$2" ] && cp -r "$ETC/skel/$2/" >> "/etc/$2" + [ -e "$ETC/skel/$2" ] && cp -r "$ETC/skel/$2/" "/etc/$2" sort -uo "$HOME/.config/cron" "$HOME/.config/cron" sort -uo "$HOME/.config/inet" "$HOME/.config/inet" ;; diff --git a/bin/tls b/bin/tls @@ -1,4 +1,11 @@ #!/bin/sh case $1 in +(generate) + openssl genpkey -algorithm RSA -out private_key.pem \ + -pkeyopt rsa_keygen_bits:2048 + ;; +(*) + printf 'usage: tls [generate]\n' + ;; esac diff --git a/daemon/ngircd b/daemon/ngircd @@ -1,3 +1,3 @@ #!/bin/sh -exec ngircd -nf "$HOME/etc/ngircd/conf" & +exec ngircd -nf "/etc/ngircd/conf" & diff --git a/skel/ngircd/conf b/skel/ngircd/conf @@ -4,13 +4,14 @@ AdminInfo2 = XXX AdminEMail = mail@josuah.net Info = XXX - MotdFile = /etc/config/ngircd/motd + MotdFile = /etc/ngircd/motd Network = XXX Ports = 6667 [Limits] + MaxConnections = 128 MaxConnectionsIP = 20 - MaxJoins = XXX + MaxJoins = 50 MaxNickLength = 10 PingTimeout = 120 PongTimeout = 120 @@ -26,17 +27,16 @@ MorePrivacy = yes OperCanUseMode = yes OperChanPAutoOp = yes - OperServerMode = yes [SSL] - CertFile = /var/ngircd/ssl/server-cert.pem + CertFile = /var/ngircd/ssl/XXX.pem CipherList = XXX DHFile = /var/ngircd/ssl/dhparams.pem - KeyFile = /var/ngircd/ssl/server-key.pem + KeyFile = /var/ngircd/ssl/XXX.key Ports = 6697 -[Server] +[Operator] XXX -[Channel] +[Server] XXX diff --git a/skel/ngircd/motd b/skel/ngircd/motd @@ -1,22 +1,18 @@ -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -@ @ -@ This server is not ready yet, visit https://cyberia.uptime.party/ @ -@ @ -@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +@ This server is not ready yet, visit https://cyberia.uptime.party/ @ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ __________________ _ / _______________/ / / / / __ __ / /_ ____ ____ /\ ____ / / / / / / / __ \ / __ \ /\/___/ /\ ,-'_ / \ \______\ \ / /__\ \/ /_\ __/_/ /____ / /_/ /_/ /___ \_________\ \/ /____\__/___\__\__\/_____/_/__\_____\__ \ - \ / ___ ___ _____ ___ ___ \ \ - ________/ / /__ /__/ /__ / /__ /\/\ /__ / / - \________/ ___/ ___/ ___/ / /__ / / / ___/ / / + \ / \ \ + ________/ / / / + \________/ / / \/ - -Listening on ports: 6667 (no TLS yet) -cyberia.systems +Listening on ports: 6697 (TLS) +irc.cyberia.systems Welcome to Cyberia We're stoked you are here @@ -40,4 +36,3 @@ First steps: Getting help: - For helpdesk on using IRC: /join #help - For network issues, status and server operator queries: /join #noc -