Previous: extract.txt, Up: Relational schema [Contents][Index]
The /etc/mediatex/mdtx-COLL/servers.txt file is used to share the latest information between servers including collection’s configuration and connectivity keys.
Relational schema:
Exemple:
# This file is managed by MediaTeX software. # MediaTeX serv1-hello@127.0.0.1:22 servers list: master a3219b5a0512d08a291aa73b85d81674 dnsHost dns.round.robbin.name.org collKey 01234567890abcde https yes # self-ingestion parameters logApache no logGit no logAudit no # score parameters uploadTTL 1 Month serverTTL 2 Week suppTTL 5 Year maxScore 10.00 badScore 1.00 powSupp 2.00 factSupp 2.00 fileScore 10.00 minGeoDup 2 Server 58225510312a82b017b07aabf7b89657 comment "Put your personal greeting here" label serv2 host 127.0.0.1 lastCommit 2015-10-05,22:52:28 mdtxPort 6002 sshPort 22 wwwPort 443 networks private, www gateways private cacheSize 100 Mo cacheTTL 15 Day queryTTL 1 Week # keys: userKey "…" hostKey "…" end Server a3219b5a0512d08a291aa73b85d81674 comment "Put your personal greeting here" label serv1 host 127.0.0.1 lastCommit 2015-10-05,22:52:35 mdtxPort 6001 sshPort 22 wwwPort 443 networks www cacheSize 100 Mo cacheTTL 15 Day queryTTL 1 Week provide de5008799752552b7963a2670dc5eb18:391168=10.00 # keys: userKey "…" hostKey "…" end
Grammar:
file: //empty file | headers | headers stanzas headers: headers header | header header: DNSHOST string | COLLKEY string | HTTPS boolean | LOGAPACHE boolean | LOGGIT boolean | LOGAUDIT boolean | SERVERTTL number time | SUPPTTL number time | UPLOADTTL number time | MAXSCORE score | BADSCORE score | POWSUPP score | FACTSUPP score | FILESCORE score | MINGEODUPP number stanzas: stanzas stanza | stanza stanza: SERVER server lines END server: HASH lines: lines line | line line: LABEL string | COMMENT string | HOST string | LASTCOMMIT date | MDTXPORT number | SSHPORT number | NETWORKS networks | GATEWAYS gateways | MDTXPORT number | SSHPORT number | WWWPORT number | USERKEY string | HOSTKEY string | CACHESIZE number size | CACHETTL number time | QUERYTTL number time | PROVIDE images networks: networks , string | string gateways: gateways , string | string images: images , image | image image: hash : number = score size: GO | MO | KO | O time: MONTH | WEEK | DAY | HOUR | MINUTE | SECOND boolean: yes | no score: [[:digit:]]+\.[[:digit:]]+ number: [[:digit:]]+ string: [^[:blank:]:,=\r\n]{1,511} | \"[^\n\"]{1,1023}\" hash: [[:xdigit:]]{32} date: {year}-{month}-{day},{HOUR}:{min}:{sec} year: [[:digit:]]{4} month: [[:digit:]]{2} day: [[:digit:]]{2} HOUR: [[:digit:]]{2} min: [[:digit:]]{2} sec: [[:digit:]]{2}
Code:
Previous: extract.txt, Up: Relational schema [Contents][Index]