diff --git a/app/index.html b/app/index.html
index a2f38caf5b039018458514719a94d218e498677f..d7b569990ad6897b71e479d71313fead91e8c535 100644
--- a/app/index.html
+++ b/app/index.html
@@ -4,7 +4,7 @@
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <title>Papermerge</title>
-    <meta name="description" content="">
+    <meta name="description" content="Papermerge - document management system for digital archives">
     <meta name="viewport" content="width=device-width, initial-scale=1">
 
     {{content-for "head"}}
diff --git a/app/utils/index.js b/app/utils/index.js
index 075420adf8a78f9aba6bd4588d5520cc07a9a77a..8d86c315936263f6fbd4b078a360d44dcfe4a0c3 100644
--- a/app/utils/index.js
+++ b/app/utils/index.js
@@ -91,27 +91,31 @@ function ws_base_url() {
   /*
   websockets base url
   */
-  let base;
+  let base = `ws://${window.location.host}`;
 
-  if (window.location.protocol == "http:") {
-    base = `ws://${window.location.host}`;
-  } else if ( window.location.protocol == "https:" ) {
+  if (window.location.protocol == "https:") {
     base = `wss://${window.location.host}`;
   }
 
+  console.log(`base=${base}`);
+
   if (!ENV.APP.WS_HOST) {
 
     if (!ENV.APP.WS_NAMESPACE) {
+      console.log(`ws_base_url() = ${base}`);
       return base;
     }
 
+    console.log(`ws_base_url() = ${base}/${ENV.APP.WS_NAMESPACE}`);
     return `${base}/${ENV.APP.WS_NAMESPACE}`;
   }
 
   if (!ENV.APP.WS_NAMESPACE) {
+    console.log(`ws_base_url() = ${ENV.APP.WS_HOST}`);
     return `${ENV.APP.WS_HOST}`;
   }
 
+  console.log(`ws_base_url() = ${ENV.APP.WS_HOST}/${ENV.APP.WS_NAMESPACE}`);
   return `${ENV.APP.WS_HOST}/${ENV.APP.WS_NAMESPACE}`;
 }
 
diff --git a/config/environment.js b/config/environment.js
index c7893417be525476e645714d1223af022cab0bd0..638719c1dde6e3a0de8f37dc898bdc9c4f16bf7b 100644
--- a/config/environment.js
+++ b/config/environment.js
@@ -52,6 +52,8 @@ module.exports = function (environment) {
 
   if (environment === 'production') {
     // here you can enable a production-specific feature
+    ENV.APP.HOST = 'http://papermerge.local';
+    ENV.APP.WS_HOST = 'ws://papermerge.local'
   }
 
   return ENV;