| 1 |
[GENERAL] |
| 2 |
root.dir=/var/lib/biomaj |
| 3 |
conf.dir=%(root.dir)s/conf |
| 4 |
log.dir=%(root.dir)s/log |
| 5 |
process.dir=%(root.dir)s/process |
| 6 |
cache.dir=%(root.dir)s/cache |
| 7 |
lock.dir=%(root.dir)s/lock |
| 8 |
#The root directory where all databases are stored. |
| 9 |
#If your data is not stored under one directory hirearchy |
| 10 |
#you can override this value in the database properties file. |
| 11 |
data.dir=%(root.dir)s//data |
| 12 |
|
| 13 |
|
| 14 |
db.url=mongodb://localhost:27017 |
| 15 |
db.name=biomaj |
| 16 |
|
| 17 |
use_ldap=0 |
| 18 |
ldap.host=localhost |
| 19 |
ldap.port=389 |
| 20 |
ldap.dn=nodomain |
| 21 |
|
| 22 |
use_elastic=0 |
| 23 |
#Comma separated list of elasticsearch nodes host1,host2:port2 |
| 24 |
elastic_nodes=localhost |
| 25 |
elastic_index=biomaj |
| 26 |
# Calculate data.dir size stats |
| 27 |
data.stats=1 |
| 28 |
|
| 29 |
redis.host=localhost |
| 30 |
redis.port=6379 |
| 31 |
redis.db=0 |
| 32 |
redis.prefix=biomaj |
| 33 |
|
| 34 |
# options to send to downloaders (protocol dependent) |
| 35 |
# options.names=option1,option2 |
| 36 |
# options.option1=value1 |
| 37 |
# options.option2=value2 |
| 38 |
# |
| 39 |
# Example supported options for ftp/http |
| 40 |
# tcp_keepalive: number of seconds for curl keep alive (maps to curl option TCP_KEEPALIVE, TCP_KEEPINTVL and TCP_KEEPIDLE) |
| 41 |
# ssl_verifyhost: boolean, check or skips SSL host (maps to curl option SSL_VERIFYHOST) |
| 42 |
# ssl_verifypeer: boolean, SSL checks (maps to curl option SSL_VERIFYPEER) |
| 43 |
# ssl_server_cert: path to certificate (maps to curl option CAINFO). |
| 44 |
|
| 45 |
|
| 46 |
# Influxdb configuration (optional) |
| 47 |
# User and db must be manually created in influxdb before use |
| 48 |
influxdb.host= |
| 49 |
influxdb.port=8086 |
| 50 |
influxdb.user=root |
| 51 |
influxdb.password=root |
| 52 |
influxdb.db=biomaj |
| 53 |
|
| 54 |
# Needed for download remote service (should be a load balancer to services |
| 55 |
#micro.biomaj.proxy=http://127.0.0.1:5000 |
| 56 |
#micro.biomaj.rabbit_mq=127.0.0.1 |
| 57 |
#micro.biomaj.rabbit_mq_port=5672 |
| 58 |
#micro.biomaj.rabbit_mq_user= |
| 59 |
#micro.biomaj.rabbit_mq_password= |
| 60 |
#micro.biomaj.rabbit_mq_virtualhost= |
| 61 |
#micro.biomaj.service.download=1 |
| 62 |
#micro.biomaj.service.process=1 |
| 63 |
#micro.biomaj.service.user=1 |
| 64 |
#micro.biomaj.service.daemon=1 |
| 65 |
|
| 66 |
## Optional |
| 67 |
# micro.biomaj.proxy.[user,cron,release,daemon,download,process]=http://127.0.0.1:5000 |
| 68 |
|
| 69 |
auto_publish=1 |
| 70 |
|
| 71 |
######################## |
| 72 |
# Global properties file |
| 73 |
|
| 74 |
|
| 75 |
#To override these settings for a specific database go to its |
| 76 |
#properties file and uncomment or add the specific line you want |
| 77 |
#to override. |
| 78 |
|
| 79 |
#---------------- |
| 80 |
# Mail Configuration |
| 81 |
#--------------- |
| 82 |
#Uncomment thes lines if you want receive mail when the workflow is finished |
| 83 |
|
| 84 |
mail.smtp.host= |
| 85 |
mail.admin= |
| 86 |
mail.from= |
| 87 |
mail.user= |
| 88 |
mail.password= |
| 89 |
mail.tls=true |
| 90 |
|
| 91 |
mail.body.tail=2000000 |
| 92 |
mail.body.attach=9000000 |
| 93 |
|
| 94 |
#--------------------- |
| 95 |
#Proxy authentification |
| 96 |
#--------------------- |
| 97 |
#proxyHost= |
| 98 |
#proxyPort= |
| 99 |
#proxyUser= |
| 100 |
#proxyPassword= |
| 101 |
|
| 102 |
#--------------------- |
| 103 |
# PROTOCOL |
| 104 |
#------------------- |
| 105 |
#possible values : ftp, http, rsync, local |
| 106 |
port=21 |
| 107 |
username=anonymous |
| 108 |
[email protected] |
| 109 |
|
| 110 |
#access user for production directories |
| 111 |
production.directory.chmod=775 |
| 112 |
|
| 113 |
#Number of thread during the download |
| 114 |
bank.num.threads=4 |
| 115 |
|
| 116 |
#Number of threads to use for downloading and processing |
| 117 |
files.num.threads=4 |
| 118 |
|
| 119 |
#Timeout for a download, in seconds (applies for each file, not for the whole downloads) |
| 120 |
timeout.download=3600 |
| 121 |
|
| 122 |
#to keep more than one release increase this value |
| 123 |
keep.old.version=0 |
| 124 |
|
| 125 |
#Link copy property |
| 126 |
do.link.copy=true |
| 127 |
|
| 128 |
|
| 129 |
#The historic log file is generated in log/ |
| 130 |
#define level information for output : DEBUG,INFO,WARN,ERR |
| 131 |
historic.logfile.level=DEBUG |
| 132 |
|
| 133 |
# Hint: you can use online service https://regex101.com/ to test your regexps |
| 134 |
http.parse.dir.line=<a[\\s]+href=\"([\\S]+)/\".*alt=\"\\[DIR\\]\">.*([\\d]{2}-[\\w\\d]{2,5}-[\\d]{4}\\s[\\d]{2}:[\\d]{2}) |
| 135 |
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}) |
| 136 |
|
| 137 |
http.group.dir.name=1 |
| 138 |
http.group.dir.date=2 |
| 139 |
http.group.file.name=1 |
| 140 |
http.group.file.date=2 |
| 141 |
http.group.file.size=3 |
| 142 |
|
| 143 |
#Needed if data sources are contains in an archive |
| 144 |
log.files=true |
| 145 |
|
| 146 |
local.files.excluded=\\.panfs.* |
| 147 |
|
| 148 |
#~40mn |
| 149 |
ftp.timeout=2000000 |
| 150 |
ftp.automatic.reconnect=5 |
| 151 |
ftp.active.mode=false |
| 152 |
|
| 153 |
# Bank default access |
| 154 |
visibility.default=public |
| 155 |
|
| 156 |
# use hard links instead of copy |
| 157 |
# use_hardlinks=0 |
| 158 |
|
| 159 |
[loggers] |
| 160 |
keys = root, biomaj |
| 161 |
|
| 162 |
[handlers] |
| 163 |
keys = console |
| 164 |
|
| 165 |
[formatters] |
| 166 |
keys = generic |
| 167 |
|
| 168 |
[logger_root] |
| 169 |
level = DEBUG |
| 170 |
handlers = console |
| 171 |
|
| 172 |
[logger_biomaj] |
| 173 |
level = DEBUG |
| 174 |
handlers = console |
| 175 |
qualname = biomaj |
| 176 |
propagate=0 |
| 177 |
|
| 178 |
[handler_console] |
| 179 |
class = StreamHandler |
| 180 |
args = (sys.stderr,) |
| 181 |
level = DEBUG |
| 182 |
formatter = generic |
| 183 |
|
| 184 |
[formatter_generic] |
| 185 |
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s |