aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-06-06 15:32:41 +0100
committerMiquel Lionel <lionelmiquel@sfr.fr>2021-06-06 15:32:41 +0100
commitbfe2259a237215da3dc43f0bfc9563e1d43f943f (patch)
tree6304628aa24b161683fa38cd27f0f6509f8f61d0 /README.md
parent10231a07a1ea47f6de56a468dd1daa2068ae50ae (diff)
downloadgpigeon-bfe2259a237215da3dc43f0bfc9563e1d43f943f.tar.gz
gpigeon-bfe2259a237215da3dc43f0bfc9563e1d43f943f.zip
a more verbose makefile and explicative readme.
- also genpass.pl didn't need a newline when priting argon2id hash
Diffstat (limited to 'README.md')
-rw-r--r--README.md73
1 files changed, 58 insertions, 15 deletions
diff --git a/README.md b/README.md
index 873b3d9..ce87785 100644
--- a/README.md
+++ b/README.md
@@ -1,29 +1,29 @@
GPIGEON
========
-Gpigeon generate links for a non technical person or someone not familiar
-with GPG, so they can send you encrypted mails via a one-time
-web form.
+Gpigeon generate links for a GPG user to be sent to a non technical person (or
+not a GPG user) so they can send you encrypted mail messages via a one-time
+web link.
Feels of déjàvu ? I was inspired by https://hawkpost.co but wasn't really
interested in the multi-user perspective and managing a database.
-Overview
+Features
========
- * Single user.
+ * Single user: no database required.
* One-time GPG form: after sending the encrypted message, the generated form
self-destructs.
* Cookie based login. If you block cookies, it will switch back to
- hidden fields so you can still login, manage and create links.
- * A table of the links generated is visible after connecting so you can
- keep track of what has been created. You can also delete links
+ hidden fields so you can still login.
+ * A table of the links generated is visible when you connect so you can
+ keep track of what has been created. You can also delete link
individually, or all at once.
* No javascript used for the moment.
Dependencies
============
-You will need perl and the following modules and my perl version is v5.32.0, YMMV:
+You will need perl and the following modules and my perl version is **v5.34.0**, YMMV:
* HTML::Entities
* CGI
@@ -39,20 +39,63 @@ You will need perl and the following modules and my perl version is v5.32.0, YMM
Having a webserver with CGI support or a separate CGI engine is needed. I'm using
nginx and fcgiwrap.
-A note on Net::SMTP and Net:SMTPS dependencies: if you have a mailserver well
+A note on **Net::SMTP** and **Net:SMTPS** dependencies: if you have a mailserver well
configured with SPF and OpenDKIM (so your chances to get your mail
treated as spam is greatly reduced) you should set the `HAS_MAILSERVER`
-variable to 1 in the config.mk file.
+variable in
+[link-tmpl.cgi](https://git.les-miquelots.net/gpigeon/plain/link-tmpl.cgi) to 1.
Installation
============
-Edit the config.mk file to customize the installation to your needs, and then
-execute:
-`sudo make`
+Don't forget to copy `config.def.mk` into `config.mk` and tune
+the variable to your liking. Then, you can run the good old:
+```
+make
+make install #you'll maybe need sudo though
+```
You should also look in the
[gpigeon-template.cgi](https://git.les-miquelots.net/gpigeon/plain/gpigeon-template.cgi)
-and [link-tmpl.cgi](https://git.les-miquelots.net/gpigeon/plain/link-tmpl.cgi) source code, you should figure things out quickly.
+and [link-tmpl-template.cgi](https://git.les-miquelots.net/gpigeon/plain/link-tmpl-template.cgi) source code, you should figure things out quickly.
**Hint**: look for variables values ending in _goes_here_.
+
+Your nginx configuration should look like this:
+```
+server {
+ listen 80;
+ server_name ggon.example.com;
+
+ location / {
+ return 301 https://$host$request_uri;
+ }
+}
+
+server {
+ listen 443 ssl http2;
+
+ root /var/www/gpigeon;
+ server_name ggon.example.com;
+ ssl_certificate /etc/letsencrypt/live/ggon.example.com/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/ggon.example.com/privkey.pem;
+ error_log /var/log/gpigeon.log;
+ index index.html index.htm;
+ include /etc/nginx/hotlinking.conf;
+ location = /cgi-bin/gpigeon.cgi {
+ ssi off;
+ gzip off;
+ fastcgi_pass unix:/run/fcgiwrap.sock;
+ include /etc/nginx/fastcgi_params;
+ }
+
+ location ~ ^/cgi-bin/l/(.*).cgi$ {
+ ssi off;
+ gzip off;
+ fastcgi_pass unix:/run/fcgiwrap.sock;
+ include /etc/nginx/fastcgi_params;
+ }
+
+ include errorpages.conf;
+}
+```