ansible/roles/roundcube/templates/nginx/roundcube.j2

29 lines
705 B
Django/Jinja

{{ ansible_header | comment }}
server {
listen roundcube.adm.crans.org:80;
listen [2a0c:700:0:2:6809:acff:fe67:47e6]:80;
server_name roundcube.adm.crans.org;
root /var/lib/roundcube;
index index.php index.htm index.html;
try_files $uri $uri/ /index.php?q=$uri&$args;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
include fastcgi_params;
}
set_real_ip_from 10.231.136.0/24;
set_real_ip_from 2a0c:700:0:2::/64;
real_ip_header P-Real-Ip;
client_max_body_size 10G;
}