aboutsummaryrefslogtreecommitdiff
path: root/nginx-example.conf
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-06-06 16:51:50 +0100
committerMiquel Lionel <lionelmiquel@sfr.fr>2021-06-06 16:51:50 +0100
commitc737d6aefe406ac52f4e2f913365efdede3f58a4 (patch)
tree7369bbdd5e04750d3f440d042d00ad9a6c338566 /nginx-example.conf
parent3b3c85e3221b7bf679c84b442fe1453fc8d83238 (diff)
downloadgpigeon-c737d6aefe406ac52f4e2f913365efdede3f58a4.tar.gz
gpigeon-c737d6aefe406ac52f4e2f913365efdede3f58a4.zip
add make vars to generate a nginx config
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;
+ }
+}
+