From 420155e750c4b95dd4327d7adb4310a64eafb364 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Fri, 18 Jun 2021 22:13:54 +0100 Subject: 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 --- config.def.mk | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 config.def.mk (limited to 'config.def.mk') 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 -- cgit v1.2.3-70-g09d2