Config nginx de roundcube dans bcfg2

This commit is contained in:
Vincent Le Gallic 2014-05-15 21:40:40 +02:00
parent b865359e8d
commit 62dccca4cd
3 changed files with 32 additions and 0 deletions

View file

@ -21,5 +21,8 @@
<Path name="/etc/munin/plugins/nginx_request"/>
<Package name="libwww-perl"/>
</Group>
<Group name="roundcube">
<Path name="/etc/nginx/sites-available/roundcube"/>
</Group>
</Bundle>

View file

@ -0,0 +1,3 @@
<FileInfo>
<Info owner='root' group='adm' perms='0664'/>
</FileInfo>

View file

@ -0,0 +1,26 @@
# Fichier géré par bcfg2 !
server {
listen 80;
listen [::]:80 ipv6only=on;
server_name roundcube.crans.org roundcube;
rewrite ^(.*)$ https://roundcube.crans.org$1;
access_log off;
}
server {
listen 443 ssl;
listen [::]:443 ssl ipv6only=on;
ssl_certificate /etc/ssl/crans/roundcube.crans.org/xid=11/cert_chain.pem;
ssl_certificate_key /etc/ssl/private/roundcube_privatekey.pem;
server_name roundcube.crans.org;
root /usr/share/roundcube/;
index index.php index.htm index.html;
# Pour ne pas que nginx timeout sur une longue recherche, par exemple
fastcgi_read_timeout 300;
try_files $uri $uri/ /index.php;
include "snippets/php.conf";
}