Config nginx de roundcube dans bcfg2
This commit is contained in:
parent
b865359e8d
commit
62dccca4cd
3 changed files with 32 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
3
Cfg/etc/nginx/sites-available/roundcube/info.xml
Normal file
3
Cfg/etc/nginx/sites-available/roundcube/info.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<FileInfo>
|
||||
<Info owner='root' group='adm' perms='0664'/>
|
||||
</FileInfo>
|
26
Cfg/etc/nginx/sites-available/roundcube/roundcube
Normal file
26
Cfg/etc/nginx/sites-available/roundcube/roundcube
Normal 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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue