initial commit

This commit is contained in:
Sebastian Hugentobler 2016-07-13 17:07:43 +02:00
commit b557c71c37
10 changed files with 189 additions and 0 deletions

View file

@ -0,0 +1,6 @@
[template]
src = "config.inc.php.tmpl"
dest = "/var/lib/roundcube/config/config.inc.php"
gid = 101
uid = 100
mode = "0660"

View file

@ -0,0 +1,3 @@
[template]
src = "nginx.conf.tmpl"
dest = "/etc/nginx/nginx.conf"

View file

@ -0,0 +1,25 @@
<?php
$config = array();
$config['db_dsnw'] = '{{getenv "DATABASEDSN"}}';
$config['log_driver'] = 'syslog';
$config['default_host'] = '{{getenv "IMAPHOST"}}';
$config['smtp_server'] = '{{getenv "SMTPHOST"}}';
$config['smtp_port'] = 587;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['use_https'] = true;
$config['des_key'] = '{{getenv "KEY"}}';
$config['cipher_method'] = '{{getenv "CIPHERMETHOD"}}';
$config['mail_domain'] = '%t';
$config['password_charset'] = 'UTF-8';
$config['plugins'] = array('managesieve', 'password', 'archive', 'zipdownload');
$config['spellcheck_engine'] = 'pspell';
$config['default_charset'] = 'UTF-8';

View file

@ -0,0 +1,55 @@
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile off;
keepalive_timeout 65;
gzip off;
upstream php {
server 127.0.0.1:9000;
}
server {
listen 80;
server_name {{ getenv "DOMAIN"}};
root /var/lib/roundcube;
index index.php index.html;
client_max_body_size 1G;
location ~ ^/(data|config|\.ht|db_structure\.xml|README|AUTHORS|COPYING-AGPL|COPYING-README) {
deny all;
}
location / {
try_files $uri $uri/ index.php;
}
location ~ ^(?<script_name>.+?\.php)(?<path_info>/.*)?$ {
try_files $script_name = 404;
include fastcgi_params;
fastcgi_param PATH_INFO $path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS on;
fastcgi_read_timeout 300;
fastcgi_pass php_roundcube;
}
location ~* ^.+.(jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ {
expires 30d;
access_log off;
}
}
}