| 1 |
[GENERAL] |
| 2 |
#The root directory where all databases are stored. |
| 3 |
#If your data is not stored under one directory hirearchy |
| 4 |
#you can override this value in the database properties file. |
| 5 |
data.dir=/var/lib/biomaj3/banks |
| 6 |
|
| 7 |
conf.dir=/etc/biomaj3 |
| 8 |
log.dir=/var/log/biomaj3 |
| 9 |
process.dir=/usr/share/biomaj3/process |
| 10 |
cache.dir=/var/cache/biomaj3 |
| 11 |
lock.dir= /var/lib/biomaj3/lock |
| 12 |
|
| 13 |
db.url=mongodb://localhost:27017 |
| 14 |
db.name=biomaj |
| 15 |
|
| 16 |
use_ldap=0 |
| 17 |
ldap.host=localhost |
| 18 |
ldap.port=389 |
| 19 |
ldap.dn=nodomain |
| 20 |
|
| 21 |
use_elastic=0 |
| 22 |
#Comma separated list of elasticsearch nodes host1,host2:port2 |
| 23 |
elastic_nodes=localhost |
| 24 |
elastic_index=biomaj |
| 25 |
|
| 26 |
# Calculate data.dir size stats |
| 27 |
data.stats=1 |
| 28 |
|
| 29 |
# Auto publish on updates (do not need publish flag, can be ovveriden in bank property file) |
| 30 |
auto_publish=0 |
| 31 |
|
| 32 |
# Microservices |
| 33 |
# You can activate all microservices or only a few (download only for example). |
| 34 |
# Proxy is the API proxy that would load-balance API requests between services. If using only 1 service then you |
| 35 |
# can specify in proxy the URL to the biomaj web service in question. |
| 36 |
# |
| 37 |
# If using download micro service only you can execute for example 4 biomaj download message processes and 1 biomaj web process, |
| 38 |
# proxy would match the URL to the biomaj web process in this case. |
| 39 |
# See micro services documentation. |
| 40 |
micro.biomaj.proxy= |
| 41 |
#micro.biomaj.service.download=1 |
| 42 |
#micro.biomaj.service.process=1 |
| 43 |
#micro.biomaj.service.user=1 |
| 44 |
#micro.biomaj.service.daemon=1 |
| 45 |
|
| 46 |
# Rabbitmq configuration (if using microservices) |
| 47 |
# Rabbitmq must be configured to get remote access with defined user (by default guest access is allowed only from localhost), |
| 48 |
# see rabbitmq configuration for help (https://www.rabbitmq.com/access-control.html) |
| 49 |
micro.biomaj.rabbit_mq= |
| 50 |
micro.biomaj.rabbit_mq_port=5672 |
| 51 |
micro.biomaj.rabbit_mq_virtualhost=/ |
| 52 |
micro.biomaj.rabbit_mq_user= |
| 53 |
micro.biomaj.rabbit_mq_password= |
| 54 |
|
| 55 |
|
| 56 |
# Influxdb (optional) |
| 57 |
# keep host empty or commented if you do not use influxdb |
| 58 |
# database n influxdb must be created first |
| 59 |
influxdb.host= |
| 60 |
influxdb.port=8086 |
| 61 |
influxdb.user=root |
| 62 |
influxdb.password=root |
| 63 |
influxdb.db=biomaj |
| 64 |
|
| 65 |
######################## |
| 66 |
# Global properties file |
| 67 |
|
| 68 |
|
| 69 |
#To override these settings for a specific database go to its |
| 70 |
#properties file and uncomment or add the specific line you want |
| 71 |
#to override. |
| 72 |
|
| 73 |
#---------------- |
| 74 |
# Mail Configuration |
| 75 |
#--------------- |
| 76 |
#Uncomment thes lines if you want receive mail when the workflow is finished |
| 77 |
|
| 78 |
mail.smtp.host=localhost |
| 79 |
#mail.smtp.port=25 |
| 80 |
mail.admin= |
| 81 |
mail.from=biomaj@localhost |
| 82 |
mail.user= |
| 83 |
mail.password= |
| 84 |
mail.tls= |
| 85 |
# tail last X bytes of log in mail body , 0 = no tail |
| 86 |
# mail.body.tail=2000000 |
| 87 |
# attach log file if size < X bytes, 0 for no attach |
| 88 |
#mail.body.attach=4000000 |
| 89 |
# path to jinja template for subject, leave empty for defaults |
| 90 |
#mail.template.subject= |
| 91 |
# path to jinja template for body, leave empty for default |
| 92 |
#mail.template.body= |
| 93 |
|
| 94 |
|
| 95 |
#Number of thread during the download |
| 96 |
bank.num.threads=4 |
| 97 |
|
| 98 |
#Number of threads to use for downloading and processing |
| 99 |
files.num.threads=4 |
| 100 |
|
| 101 |
#to keep more than one release increase this value |
| 102 |
keep.old.version=0 |
| 103 |
|
| 104 |
#The historic log file is generated in log/ |
| 105 |
#define level information for output : DEBUG,INFO,WARN,ERR |
| 106 |
historic.logfile.level=DEBUG |
| 107 |
|
| 108 |
http.parse.dir.line=<a[\\s]+href=\"([\\S]+)/\".*alt=\"\\[DIR\\]\">.*([\\d]{2}-[\\w\\d]{2,5}-[\\d]{4}\\s[\\d]{2}:[\\d]{2}) |
| 109 |
http.parse.file.line=<a[\\s]+href=\"([\\S]+)\".*([\\d]{2}-[\\w\\d]{2,5}-[\\d]{4}\\s[\\d]{2}:[\\d]{2})[\\s]+([\\d\\.]+[MKG]{0,1}) |
| 110 |
|
| 111 |
http.group.dir.name=1 |
| 112 |
http.group.dir.date=2 |
| 113 |
http.group.file.name=1 |
| 114 |
http.group.file.date=2 |
| 115 |
http.group.file.size=3 |
| 116 |
|
| 117 |
|
| 118 |
# Bank default access |
| 119 |
visibility.default=public |
| 120 |
|
| 121 |
# Proxy, optional proxy (see format at |
| 122 |
# http://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html) |
| 123 |
# biomaj >= 3.0.7 |
| 124 |
#proxy=myproxyhost:1080 |
| 125 |
#proxy=myproxyhost |
| 126 |
# Set proxy authentication if any, else keep commented |
| 127 |
#proxy_auth=user:password |
| 128 |
|
| 129 |
[loggers] |
| 130 |
keys = root, biomaj |
| 131 |
|
| 132 |
[handlers] |
| 133 |
keys = console |
| 134 |
|
| 135 |
[formatters] |
| 136 |
keys = generic |
| 137 |
|
| 138 |
[logger_root] |
| 139 |
level =INFO |
| 140 |
handlers = console |
| 141 |
|
| 142 |
[logger_biomaj] |
| 143 |
level = INFO |
| 144 |
handlers = console |
| 145 |
qualname = biomaj |
| 146 |
propagate=0 |
| 147 |
|
| 148 |
[handler_console] |
| 149 |
class = StreamHandler |
| 150 |
args = (sys.stderr,) |
| 151 |
level = INFO |
| 152 |
formatter = generic |
| 153 |
|
| 154 |
[formatter_generic] |
| 155 |
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s |