-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.json.template
62 lines (62 loc) · 2.15 KB
/
config.json.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"LOCAL": {
"inputdirs": [
"/path/to/local/input/directory/1/",
"/path/to/local/input/directory/2/"
],
"sequencer": "miseq",
"folderregexmiseq": "\\d{6}_[A-Z0-9]{6}_\\d{4}_\\d{9}-[A-Z0-9]{5}$",
"folderregexnextseq": "\\d{6}_[A-Z0-9]{7}_\\d{1,}_[A-Z0-9]{9}$",
"watchfilepath": "CompletedJobInfo.xml",
"logfile": "logfile.log",
"sleeptime": 5
},
"SERVER": {
"host": "hostname.com",
"pemfile": "/path/to/hostname.pem",
"loginid": "firstname.lastname",
"outputdirs": [
"/path/to/remote/output/directory/1/",
"/path/to/remote/output/directory/2/"
]
},
"EMAIL": {
"enabled": false,
"mailsubject": "[illumina-uploader] {status} miseq data transfer to sabin",
"mailbody": "Run directory {folderToUpload} {status} transferring to Sabin at {timeOfMail}"
},
"PLOVER_EMAIL": {
"enabled": false,
"emailurl": "https://emailprovider.com",
"emailtoken": "secrettoken",
"mailto": "recipient"
},
"MCMS_EMAIL": {
"enabled": false,
"authurl": "https://site.com/token",
"clientid": "client_id",
"clientsecret": "client_secret",
"emailurl": "https://site.com/email",
"mailto": ["[email protected]"],
"senderemail": "[email protected]"
},
"COMMANDS": {
"rsynccommand": "rsync -artvh -p -e \"{sshformat} -i {pem}\" {chmod} {inDir}/{inFile} {login}@{host}:{outDir}",
"scpcommand": "scp -i {pem} {inDir}/{filename} {login}@{host}:{outDir}/{filename}",
"sshnixcommand": "ssh",
"sshwincommand": "/usr/bin/ssh",
"chmodcommand": "--chmod=Du=rwx,Dg=rx,Fu=rw,Fg=r,o="
},
"DB": {
"location": "local.db",
"backupfolder": "backups",
"foldertable": "folderinfo"
},
"SQL": {
"createtable": "CREATE TABLE {} (folder text, status text, querylastrun text);",
"checkfolderpresence": "SELECT * FROM {} WHERE folder='{}';",
"insertfolder": "INSERT INTO {} VALUES ('{}','{}','{}');",
"getfolderstoupload": "SELECT {} FROM {} WHERE status<>'{}';",
"markfileindb": "UPDATE {} SET status='{}' WHERE folder='{}';"
}
}