initial commit
This commit is contained in:
commit
b557c71c37
10 changed files with 189 additions and 0 deletions
25
rootfs/etc/confd/templates/config.inc.php.tmpl
Normal file
25
rootfs/etc/confd/templates/config.inc.php.tmpl
Normal 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';
|
55
rootfs/etc/confd/templates/nginx.conf.tmpl
Normal file
55
rootfs/etc/confd/templates/nginx.conf.tmpl
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue