Mercurial > sat_docs
view scripts/dns_srv/configure_dns_srv.sh @ 43:4c5bd7ddaaca
xep: updated XEP-0356 (privileged entity):
Several updates according to feedbacks + review:
- added links to PEP and namespace delegation XEPs
- removed MUST for default values in configuration
- <forwarded/> element is now a child of a <privilege/> element
- <perm/> "namespace" attribute has been renamed to "access"
- "headline" type restriction for "message" privilege has been removed
- "message" permission violation now result in a "forbidden" message error
- for "presence" permission, only <presence/> stanza with no type or with a "unavailable" type are sent to privileged entity
- added specifitation for "presence" if a managed entity is unavailable and if a privileged entity is available after first <presence/> stanzas have been received
- added Business Rules section
- Updated namespace to reflect incompatible changes
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 23 Mar 2015 18:41:01 +0100 |
parents | a6af040be754 |
children | 358a4fc0e091 |
line wrap: on
line source
#!/bin/bash # This script allows you to quickly change your bind9 configuration: # - define an internal domain and bind it to 127.0.0.1 # - add SRV records to use this domain with your local XMPP server # # BE SURE TO BACKUP /etc/bind AND /var/cache/bind BEFORE USING THIS SCRIPT! # # Configuration files based on: # - http://www.madboa.com/geek/soho-bind # - http://wiki.xmpp.org/web/SRV_Records # - http://prosody.im/doc/dns # # For this to work, Prosody configuration must define the domain as a VirtualHost. # It is also assumed that the Prosody "directory" option is set to "/var/cache/bind". # # Finally, you may want to modify the SàT configuration file to set the option # "new_account_domain" to that domain passed in $1 in order to register new # account from Libervia, and the "jid" option of sat_pubsub should be set to # "sat-pubsub.<domain>" for the microblogging feature to work. if [ $# -lt 2 ]; then echo "Usage: `basename $0` <domain> <c2s_port>" exit 1 fi HOSTNAME=`cat /etc/hostname` DOMAIN=$1 C2S_PORT=$2 DATE=`date +%s` mkdir -p /tmp/$DATE/ cp -r template/* /tmp/$DATE/ cd /tmp/$DATE for FILE in `find . -type f`; do sed -e s/\<domain\>/$DOMAIN/g -e s/\<hostname\>/$HOSTNAME/g -e s/\<date\>/$DATE/g -e s/\<c2s_port\>/$C2S_PORT/g $FILE > `echo $FILE | sed -e 's/^.//' -e s/my.domain/$DOMAIN/` done /etc/init.d/bind9 restart tail /var/log/syslog