diff --git a/roles/chatbridge/tasks/chatbridge.yml b/roles/chatbridge/tasks/chatbridge.yml index 0a789a9..fa686c9 100644 --- a/roles/chatbridge/tasks/chatbridge.yml +++ b/roles/chatbridge/tasks/chatbridge.yml @@ -39,7 +39,7 @@ copy: remote_src: true src: "{{ chatbridge_user_home }}/chatbridge/client/dist/" - dest: "/var/www/html{{ chatbridge_webroot }}" + dest: "{{ chatbridge_public_dir }}" diff --git a/roles/chatbridge/templates/nginx_chatbridge.conf.j2 b/roles/chatbridge/templates/nginx_chatbridge.conf.j2 index a2db453..bb952b3 100644 --- a/roles/chatbridge/templates/nginx_chatbridge.conf.j2 +++ b/roles/chatbridge/templates/nginx_chatbridge.conf.j2 @@ -8,7 +8,7 @@ server { } location {{ chatbridge_webroot }}/ { - root {{ chatbridge_user_home }}/public; + alias {{ chatbridge_user_home }}/public; try_files $uri $uri/ =404; } diff --git a/roles/chatbridge/templates/nginx_chatbridge_http.conf.j2 b/roles/chatbridge/templates/nginx_chatbridge_http.conf.j2 index 0b9d38b..b591dca 100644 --- a/roles/chatbridge/templates/nginx_chatbridge_http.conf.j2 +++ b/roles/chatbridge/templates/nginx_chatbridge_http.conf.j2 @@ -15,7 +15,7 @@ server { {% else %} location {{ chatbridge_webroot }} { - root {{ chatbridge_public_dir }}; + alias {{ chatbridge_public_dir }}; index index.html; try_files $uri $uri/ $uri/index.html =404; } diff --git a/server/src/matterbridge/process.ts b/server/src/matterbridge/process.ts index dcb8de8..9012082 100644 --- a/server/src/matterbridge/process.ts +++ b/server/src/matterbridge/process.ts @@ -93,6 +93,9 @@ class MatterbridgeManager { if (err) { logger.error('error restarting matterbridge process', err) } + if (proc) { + logger.info('process restart info %s', proc) + } } ) }