[kune-commits] r1723 - in trunk: . docs src/main/resources src/main/webapp
Vicente J. Ruiz Jurado
vjrj_ at ourproject.org
Wed Feb 29 12:03:10 CET 2012
Author: vjrj_
Date: 2012-02-29 12:03:10 +0100 (Wed, 29 Feb 2012)
New Revision: 1723
Added:
trunk/CHANGING_DOMAIN
Removed:
trunk/docs/tutorials/
Modified:
trunk/INSTALL
trunk/src/main/resources/kune.properties
trunk/src/main/resources/wave-server.properties
trunk/src/main/webapp/ws.html
Log:
Changing de domain to a kune server
Added: trunk/CHANGING_DOMAIN
===================================================================
--- trunk/CHANGING_DOMAIN (rev 0)
+++ trunk/CHANGING_DOMAIN 2012-02-29 11:03:10 UTC (rev 1723)
@@ -0,0 +1,39 @@
+=CHANGING THE DOMAIN OF A KUNE SERVER=
+
+Suppose that we want to change from domain.old to domain.new in a kune server deployment.
+
+==Prerrequisites==
+
+* Make a backup of /var/lib/kune/, your db and any other location for wave info (_accounts, _deltas, etc)
+* Be sure that domain.new can be resolved correctly ($ dig domain.new), also the SRV records (see INSTALL)
+* stop kune
+
+==Do the job==
+
+===Update configurations and stores===
+* in _accounts, _deltas
+
+for i in `grep -ril domain.old /var/lib/kune/_accounts`; do perl -p -i -e 's/domain.old/domain.new/g' $i ; done
+for i in `grep -ril domain.old /var/lib/kune/_deltas`; do perl -p -i -e 's/domain.old/domain.new/g' $i ; done
+
+perl -p -i -e 's/domain.old/domain.new/g' src/main/resources/kune.properties # or in /etc/kune
+perl -p -i -e 's/domain.old/domain.new/g' src/main/resources/wave-server.properties # or in /etc/kune
+perl -p -i -e 's/domain.old/domain.new/g' src/main/webapp/ws.html
+or in production
+perl -p -i -e 's/domain.old/domain.new/g' /var/www/kune/ws.html
+
+rename 's/domain.old/domain.new/g' /var/lib/kune/_accounts
+
+Remove old persisted sessions:
+rm /var/lib/kune/_sessions/*
+
+===Update the openfire configuration===
+Update your new domain in:
+Server > Server Manager > Edit Server Properties
+Restart the openfire server
+ /etc/init.d/openfire restart
+
+===Certificates===
+Update your ssl certificates (openfire, wave keystore, wave federation, etc), if you have configured before with domain.old
+
+Restart kune and check if all it's ok.
Modified: trunk/INSTALL
===================================================================
--- trunk/INSTALL 2012-02-29 10:13:51 UTC (rev 1722)
+++ trunk/INSTALL 2012-02-29 11:03:10 UTC (rev 1723)
@@ -67,6 +67,12 @@
also if you want to select the database used (by default kune_dev) you have to configure it in kune.properties.
+===Configure your domain===
+
+Be sure that the domain you want to use with kune resolv correctly:
+ dig example.org
+For development we recommend to use some domain with zone like local.net (add to you /etc/hosts if it's not yet there). If you want to use another different domain from local.net, you have to update src/main/resources/kune.properties and src/main/resources/wave-server*
+
===Source code (if you are installing Kune for development)===
See the DEVGUIDE for instructions of how to download the Kune code.
Modified: trunk/src/main/resources/kune.properties
===================================================================
--- trunk/src/main/resources/kune.properties 2012-02-29 10:13:51 UTC (rev 1722)
+++ trunk/src/main/resources/kune.properties 2012-02-29 11:03:10 UTC (rev 1723)
@@ -3,7 +3,7 @@
### general site config
# Your site url. Please end with a slash
-kune.siteurl = http://localhost:8080/
+kune.siteurl = http://local.net:8080/
kune.sitelogourl = ws/images/kune-logo-16px.png
kune.sitelogourl.onover = ws/images/kune-logo-onover-16px.png
@@ -24,8 +24,8 @@
### Email
-kune.site.smtp.host = localhost
-kune.site.smtp.defaultfrom = noreply at localhost
+kune.site.smtp.host = local.net
+kune.site.smtp.defaultfrom = noreply at local.net
# If we should avoid the use of smtp (use only for avoid emails during development)
kune.site.smtp.skip = false
# This file will we the html used to send emails to users.
@@ -59,12 +59,12 @@
kune.admin.name = Site Administrator
kune.admin.shortName = admin
-kune.admin.email = admin at localhost.localdomain
+kune.admin.email = admin at local.net.localdomain
kune.admin.password = easyeasy
kune.chat.httpbase = /http-bind/
-kune.chat.domain = localhost
-kune.chat.roomHost = rooms.localhost
+kune.chat.domain = local.net
+kune.chat.roomHost = rooms.local.net
### Feedback system
kune.feedback.enabled = true
Modified: trunk/src/main/resources/wave-server.properties
===================================================================
--- trunk/src/main/resources/wave-server.properties 2012-02-29 10:13:51 UTC (rev 1722)
+++ trunk/src/main/resources/wave-server.properties 2012-02-29 11:03:10 UTC (rev 1723)
@@ -3,12 +3,12 @@
# Domain name of the wave server
# Default value: local.net (without .domain zone some things will be broken)
-wave_server_domain = localhost
+wave_server_domain = local.net
# A comma separated list of address on which to listen for connections.
# Each address is a comma separated host:port pair.
-# Default value: localhost:9898
-http_frontend_public_address = localhost:8888
+# Default value: local.net:9898
+http_frontend_public_address = local.net:8888
# Default value: values passed to http_frontend_public_address.
http_frontend_addresses = ${http_frontend_public_address}
Modified: trunk/src/main/webapp/ws.html
===================================================================
--- trunk/src/main/webapp/ws.html 2012-02-29 10:13:51 UTC (rev 1722)
+++ trunk/src/main/webapp/ws.html 2012-02-29 11:03:10 UTC (rev 1723)
@@ -14,10 +14,10 @@
-->
<meta name="kune.default.site.commonname" content="this site" />
<meta name="emite.httpBase" content="/http-bind/" />
-<meta name="emite.host" content="localhost" />
-<meta name="emite.searchHost" content="search.localhost" />
+<meta name="emite.host" content="local.net" />
+<meta name="emite.searchHost" content="search.local.net" />
<!--<meta name="emite.session" content="login" />-->
-<meta name="hablar.roomService" content="rooms.localhost" />
+<meta name="hablar.roomService" content="rooms.local.net" />
<meta name="hablar.login" content="false" />
<meta name="hablar.hasVCard" content="false" />
<meta name="hablar.search" content="false" />
More information about the kune-commits
mailing list