summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-19 19:45:22 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-19 19:45:22 +0100
commite330fd50d022f1cd4c4623da5970a7e3e8defcff (patch)
tree2f8c93fd4243f65b07d3a1e904748e2ec5f7b612 /config.c
parent55a2e7bd9be3112a8f8b8661b4ccf991d7c0d515 (diff)
Change defaults (including default and example configuration files) to look for cert.pem and key.pem in ~/.blabouncer/.
Diffstat (limited to 'config.c')
-rw-r--r--config.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/config.c b/config.c
index 5ef6ffc..f557001 100644
--- a/config.c
+++ b/config.c
@@ -159,10 +159,14 @@ int createconfigfile(char *filename) {
// Prepare the string
char *string =
"# blabouncer configuration file\n"
+ "#\n"
"# Entries must be in the form:\n"
"# option name, space, equals sign, space, double quote, option value, double quote\n"
"# e.g.\n"
"# realname = \"Mr Bla Bouncer\"\n"
+ "#\n"
+ "# Shell expansion is not supported, so do not try and specify e.g.\n"
+ "# \"~/.blabouncer/\" or \"%HOME/.blabouncer/\", instead use \"/home/foo/.blabouncer\"\n"
"\n"
"nick = \"blabounce\"\n"
"nick2 = \"bbounce2\"\n"
@@ -170,7 +174,7 @@ int createconfigfile(char *filename) {
"username = \"bounceusr\"\n"
"realname = \"Mr Bla Bouncer\"\n"
"\n"
- "# Channels to automatically join (comma-separated list)\n"
+ "# Channels to automatically join (comma-separated list, defaults to none)\n"
"#channels = \"#blabouncer,#test\"\n"
"\n"
"# How many seconds of replay log should be sent to connecting clients\n"
@@ -195,13 +199,13 @@ int createconfigfile(char *filename) {
"# Real IRC server port\n"
"ircserverport = \"6697\"\n"
"\n"
- "# Certificate file\n"
+ "# Certificate file (defaults to $HOME/.blabouncer/cert.pem)\n"
"# If clienttls = \"0\" then this need not be set\n"
- "certfile = \"cert.pem\"\n"
+ "#certfile = \"/home/foo/.blabouncer/cert.pem\"\n"
"\n"
- "# Certificate key file\n"
+ "# Certificate key file (defaults to $HOME/.blabouncer/key.pem)\n"
"# If clienttls = \"0\" then this need not be set\n"
- "keyfile = \"key.pem\"\n"
+ "#keyfile = \"/home/foo/.blabouncer/key.pem\"\n"
"\n"
"# Base directory (defaults to $HOME/.blabouncer/)\n"
"# Things such as the logs directory will be placed below this\n"