Update deploy-chatmail/src/deploy_chatmail/nginx/index.html.j2

Co-authored-by: missytake <missytake@systemli.org>

use example config as recommended by fcgiwrap/README.debian
This commit is contained in:
holger krekel
2023-12-04 12:38:20 +01:00
parent 4c7e39c10c
commit d3281cc746
2 changed files with 3 additions and 15 deletions

View File

@@ -13,7 +13,7 @@
<li>Scan or Tap on the invite QR code</li>
<li>Choose Nickname and Avatar</li>
<li>Use QR code invites and scans to setup end-to-end encrypted communication
with any e-mail address</li>
with any Delta Chat user</li>
</ol>
<a href="DCACCOUNT:https://{{ config.mail_domain }}/cgi-bin/newemail.py">
<img class="section" src="qrcode.png" />

View File

@@ -41,20 +41,8 @@ http {
try_files $uri $uri/ =404;
}
location /cgi-bin/ {
# Set the root to /usr/lib (inside this location this means that we are
# giving access to the files under /usr/lib/cgi-bin)
root /usr/lib;
# Fastcgi socket
fastcgi_pass unix:/var/run/fcgiwrap.socket;
# Fastcgi parameters, include the standard ones
include /etc/nginx/fastcgi_params;
# Adjust non standard parameters (SCRIPT_FILENAME)
# fastcgi_param SCRIPT_FILENAME /usr/lib$fastcgi_script_name;
}
# add cgi-bin support
include /usr/share/doc/fcgiwrap/examples/nginx.conf;
}
server {
listen 80 default_server;