aboutsummaryrefslogtreecommitdiff
path: root/nginx-example.conf
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 /nginx-example.conf
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 'nginx-example.conf')
-rw-r--r--nginx-example.conf34
1 files changed, 34 insertions, 0 deletions
diff --git a/nginx-example.conf b/nginx-example.conf
new file mode 100644
index 0000000..97e5027
--- /dev/null
+++ b/nginx-example.conf
@@ -0,0 +1,34 @@
+server {
+ listen 80;
+ server_name domain_goes_here;
+
+ location / {
+ return 301 https://$host$request_uri;
+ }
+}
+
+server {
+ listen 443 ssl http2;
+
+ root wwwpath_goes_here;
+ server_name domain_goes_here;
+ ssl_certificate /etc/letsencrypt/live/domain_goes_here/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/domain_goes_here/privkey.pem;
+ error_log /var/log/gpigeon.log;
+ index index.html index.htm;
+
+ 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;
+ }
+}
+