aboutsummaryrefslogtreecommitdiff
path: root/config.def.mk
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-06-18 22:13:54 +0100
committerMiquel Lionel <lionelmiquel@sfr.fr>2021-06-23 13:48:56 +0100
commit420155e750c4b95dd4327d7adb4310a64eafb364 (patch)
tree3c7ea05d24b73e1467489530b4f7c9be50e0af7c /config.def.mk
parent416fb73fbccf28ff256de352cd9b14803423852d (diff)
downloadgpigeon-420155e750c4b95dd4327d7adb4310a64eafb364.tar.gz
gpigeon-420155e750c4b95dd4327d7adb4310a64eafb364.zip
add some update from the master.
- Added the README.md form master branch. - Added new script gpigeonctl: will allow to initialize the database and manage it (add or delete and user, purge cookies). - Added the Makefile and the config.dek.mk from master branch with some changes - Added nginx config from master branch - Rename gpigeon.css -> styles.css - gpigeon-template.cgi: the -w flag on the shebang is useless because we already have "use warnings". Also, the man page discourage its use. - Fixed link-tmpl-template.cgi: the self-deletion now occurs as intended, and not only when in HAS_MAILSERVER=0 mode. also fixed the indenting around these parts because it was a clusterfuck
Diffstat (limited to 'config.def.mk')
-rw-r--r--config.def.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/config.def.mk b/config.def.mk
new file mode 100644
index 0000000..4f88b8c
--- /dev/null
+++ b/config.def.mk
@@ -0,0 +1,31 @@
+# Customize below to fit your system
+
+# paths
+PREFIX = /usr/share
+#COOKIES_DIR = $(PREFIX)/cookies
+_GPG_HOMEDIR = $(PREFIX)/gpigeon/gnupg
+LINK_TEMPLATE_PATH = $(PREFIX)/gpigeon/link-tmpl.cgi
+WWWPREFIX = /var/www/gpigeon
+GPIGEON_PATH = $(WWWPREFIX)/cgi-bin/gpigeon.cgi
+DB_PATH=$(PREFIX)/gpigeon/the.db
+
+# CGI tuning stuff
+MSG_FORM_CHAR_LIMIT = 3000
+
+# argon2id hash. generated by genpass.pl if empty when running make
+#ARGON2ID_HASH =
+
+# gpg and email vars
+HAS_MAILSERVER = 0# choose 0 if you'll use an external mail server, 1 if local mail server installed.
+# you don't need to set the 3 last variables if you got a local mailserver.
+#MYGPG_ID_0XLONG =# the 0xlong format of your gpg key.
+#MYMAIL_ADDR =# your mail address
+MAILSENDER =# the mailer address that'll send you the encrypted mails
+MAILSENDER_PW =# password for the mailer address
+SMTP_DOMAIN =# smtp domain pour the mailer
+SMTP_PORT =# smtp port for the mailer
+
+#optional, domain to generate nginx config for
+#and where to put the config
+WWWDOMAIN=
+NGINXCONFDIR=/etc/nginx/sites-enabled