Next: supports.txt, Up: Relational schema [Contents][Index]
The /etc/mediatex/mdtx.conf file is used locally as the main MEDIATEX configuration file. It is read by the 3 binaries:
Both PUBLISHER (see Who) and CLIENT may modify it.
Relational schema:
Notice: /etc/mediatex/mdtx-COLL/servers.txt (see servers.txt) summerize the IMAGEFILES, NETWORKS and GATEWAYS relationships from all the hosts sharing a collection.
Example:
# This is the MediaTeX software configuration file. # comment: greeter for this server comment "Put your personal greeting here" # host: hostname used in urls host 127.0.0.1 # port: listening port for incoming requests mdtxPort 6001 # port: listening port for SSHd sshPort 22 # port: listening ports for Apache httpPort 80 httpsPort 443 # networks: networks the host belongs to networks www # gateways: networks the host is a gateway for # default cache parameters cacheSize 100 Mo cacheTTL 15 Day queryTTL 1 Week # local support parameters checkTTL 6 Month fileTTL 2 Month suppTTL 5 Year maxScore 10.00 badScore 1.00 powSupp 2.00 factSupp 2.00 # motd policy motdPolicy most # The below section is also managed by MediaTeX software. # You should not edit by hand parameters bellow the -- line. # (host fingerprint: 89ff8cc8968fac6bc456757ce563b0b4) Collection serv1-hello@127.0.0.1:22 # -- localhost 540321ab656ad5c287e76f9dc361cfff share /usr/share/mediatex/misc/logoP2.iso, iso1 end
Grammar:
stanzas: stanzas confLine | stanzas collectionStanza | confLine | collectionStanza collectionStanza: collection collectionLines ENDBLOCK collection: coll string - string @ string : number collectionLines: collectionLines collectionLine | collectionLine collectionLine: SHARE supports | LOCALHOST string | NETWORKS networks | GATEWAYS gateways | CACHESIZE number SIZE | CACHETTL number TIME | QUERYTTL number TIME | MOTDPOLICY (most|all) supports: supports , support | support support: string confLine: HOST string | NETWORKS networks | GATEWAYS gateways | COMMENT string | MDTXPORT number | SSHPORT number | HTTPPORT number | HTTPSPORT number | CACHESIZE number SIZE | CACHETTL number TIME | QUERYTTL number TIME | CHECKTTL number TIME | FILETTL number TIME | SUPPTTL number TIME | MAXSCORE score | BADSCORE score | POWSUPP score | FACTSUPP score | MOTDPOLICY (most|all) networks: networks , network | network gateways: gateways , gateway | gateway network: string gateway: string string: [^[:blank:],\r\n]{1,511} | \"[^\r\n\"]{1,509}\" coll: [^\r\n[:blank:]:\-@]{1,20} size: GO | MO | KO | O time: YEAR | MONTH | WEEK | DAY | HOUR | MINUTE | SECOND score: [[:digit:]]+\.[[:digit:]]+ number: [[:digit:]]+
Code:
Next: supports.txt, Up: Relational schema [Contents][Index]