Go to file
Mathias Kaufmann 95f4035392 Added helm chart
Signed-off-by: Mathias Kaufmann <me@stei.gr>
2018-03-14 01:09:17 +01:00
charts/goircd Added helm chart 2018-03-14 01:09:17 +01:00
examples/proxy-protocol Fix typo 2018-03-06 22:52:43 +01:00
startup Better FreeBSD's startup script 2015-10-11 21:02:52 +03:00
.dockerignore Added Dockerfile 2018-03-13 23:52:03 +01:00
AUTHORS Thanks to Björn for his patches 2018-03-04 22:01:18 +00:00
BSDmakefile GNU and BSD Make compatible makefile 2015-10-06 11:31:11 +03:00
COPYING Initial commit 2014-05-11 20:18:55 +04:00
Dockerfile Fixed entrypoint 2018-03-14 01:08:43 +01:00
GNUmakefile Added trailing newline 2018-03-14 00:11:01 +01:00
INSTALL Official repository of goircd is at git.cypherpunks.ru 2015-10-06 11:31:11 +03:00
README ISON command support 2018-03-04 22:01:18 +00:00
client.go Merge pull request #2 from steigr/feature/proxy-protocol 2018-03-06 23:50:57 +01:00
client_test.go Raise copyright years 2018-03-04 22:01:18 +00:00
common.mk Added make targets to build and push docker images 2018-03-14 00:10:00 +01:00
common_test.go Raise copyright years 2018-03-04 22:01:18 +00:00
daemon.go Fix type of lusers 2018-03-08 17:11:58 +00:00
daemon_test.go Raise copyright years 2018-03-04 22:01:18 +00:00
events.go Raise copyright years 2018-03-04 22:01:18 +00:00
goircd.go Added healthchecking via HTTP 2018-03-14 01:05:57 +01:00
lighttpd.conf Example lighttpd configuration for logs directory viewing 2018-03-04 22:01:18 +00:00
room.go Fixes by Gunnar 2018-03-04 22:24:15 +00:00
room_test.go Various race preventing locks 2018-03-04 22:01:18 +00:00

README

     goircd -- minimalistic simple Internet Relay Chat (IRC) server
     ==============================================================

DESCRIPTION

goircd is very simple IRC server, written on Go.
It was heavily inspired by miniircd daemon written on Python.
GoVPN is free software: see the file COPYING for copying conditions.
It does not aim to replace full featured mass scalable IRC networks:

* It can not connect to other servers. Just standalone installation
* It has few basic IRC commands
* There is no support for channel operators, modes, votes, invites
* No ident lookups

But it has some convincing features:

* Only standard Go libraries, no external requirements
* Single executable binary
* No configuration file, just few command line arguments
* IPv6 out-of-box support
* Ability to listen on TLS-capable ports
* Optional channel logging to plain text files
* Optional permanent channel's state saving in plain text files
  (so you can reload daemon and all channels topics and keys won't
  disappear)
* Optional ability to authenticate users by nickname and password

Some remarks and recommendations related to it's simplicity:

* Use either nohup or similar tools to daemonize it
* Just plain logging on stderr, without syslog support

SUPPORTED IRC COMMANDS

* PASS/NICK/USER during registration workflow
* PING/PONGs
* NOTICE/PRIVMSG, ISON
* AWAY, MOTD, LUSERS, WHO, WHOIS, VERSION, QUIT
* LIST, JOIN, TOPIC, +k/-k channel MODE

USAGE

Just execute goircd daemon. It has following optional arguments:

   -hostname: hostname to show for client's connections
       -bind: address to bind to (:6667 by default)
       -motd: absolute path to MOTD file. It is reread every time
              MOTD is requested
     -logdir: directory where all channels messages will be saved. If
              omitted, then no logs will be kept
   -statedir: directory where all channels states will be saved and
              loaded during startup. If omitted, then states will be
              lost after daemon termination
    -tlsbind: enable TLS, specify address to listen on and path
     -tlspem  to PEM file with certificate and private key
  -passwords: enable client authentication and specify path to
              passwords file
          -v: increase verbosity

TLS

If you specify -bind and -tlsbind simultaneously, then you will have
both raw and encrypted listening sockets. You can use -bind "" to
disable raw socket.

AUTHENTICATION

You can turn on optional client authentication by preparing passwords
file and using the -passwords argument. Format of passwords file is:

    login1:password1\n
    login2:password2\n
    ...

LOG FILES

Log files are not opened all the time, but only during each message
saving. That is why you can safely rename them for rotation purposes.

STATE FILES

Each state file has the name equals to room's one. It contains two plain
text lines: room's topic and room's authentication key (empty if none
specified). For example:

    % cat states/meinroom
    This is meinroom's topic
    secretkey

LICENCE

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.