diff --git a/ansible/roles/nova-cell/defaults/main.yml b/ansible/roles/nova-cell/defaults/main.yml
index afbd995fdbd2b93688f31e50f3808ba2e97f618c..4a8bd38dc98724d694967c1b2396e97b6e3c11ad 100644
--- a/ansible/roles/nova-cell/defaults/main.yml
+++ b/ansible/roles/nova-cell/defaults/main.yml
@@ -410,6 +410,7 @@ nova_cell_bootstrap_extra_volumes: "{{ nova_extra_volumes }}"
 # HAProxy
 ####################
 haproxy_nova_serialconsole_proxy_tunnel_timeout: "10m"
+haproxy_nova_spicehtml5_proxy_tunnel_timeout: "1h"
 
 ####################
 # OpenStack
diff --git a/ansible/roles/nova-cell/tasks/loadbalancer.yml b/ansible/roles/nova-cell/tasks/loadbalancer.yml
index 13d685fa1fe6affb6fe5ecd31d2e3b664d359f1e..61c6d16d0018c9c8f9e1900ebf313e5fb4d8063b 100644
--- a/ansible/roles/nova-cell/tasks/loadbalancer.yml
+++ b/ansible/roles/nova-cell/tasks/loadbalancer.yml
@@ -78,12 +78,16 @@
             external: false
             port: "{{ hostvars[groups[cell_proxy_group][0]]['nova_spicehtml5proxy_port'] }}"
             listen_port: "{{ hostvars[groups[cell_proxy_group][0]]['nova_spicehtml5proxy_listen_port'] }}"
+            backend_http_extra:
+              - "timeout tunnel {{ haproxy_nova_spicehtml5_proxy_tunnel_timeout }}"
           nova_spicehtml5proxy_external:
             enabled: "{{ hostvars[groups[cell_proxy_group][0]]['nova_console'] == 'spice' }}"
             mode: "http"
             external: true
             port: "{{ hostvars[groups[cell_proxy_group][0]]['nova_spicehtml5proxy_port'] }}"
             listen_port: "{{ hostvars[groups[cell_proxy_group][0]]['nova_spicehtml5proxy_listen_port'] }}"
+            backend_http_extra:
+              - "timeout tunnel {{ haproxy_nova_spicehtml5_proxy_tunnel_timeout }}"
   tags: always
 
 - import_tasks: proxy_loadbalancer.yml
diff --git a/releasenotes/notes/bug-1938549-e73042a61f0a5935.yaml b/releasenotes/notes/bug-1938549-e73042a61f0a5935.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6a88b4d9ca810f007732f68d3c84650dfdfc8302
--- /dev/null
+++ b/releasenotes/notes/bug-1938549-e73042a61f0a5935.yaml
@@ -0,0 +1,10 @@
+---
+features:
+  - |
+    Adds config parameter ``haproxy_nova_spicehtml5_proxy_tunnel_timeout``
+    to configure the ``Tunnel TimeOut`` directive for spicehtml5proxy
+    haproxy service.
+fixes:
+  - |
+    Fixes an issue where spice console is freezed after while,
+    see `LP#1938549 <https://launchpad.net/bugs/1938549>`__.