Browse Source

fix commento websocket proxy

Thomas Buck 1 year ago
parent
commit
b12aa08e13

+ 4
- 0
roles/blog/tasks/commento.yml View File

@@ -72,3 +72,7 @@
72 72
   command: a2ensite commento_{{ item }}.conf creates=/etc/apache2/sites-enabled/commento_{{ item }}.conf
73 73
   notify: restart apache
74 74
   with_items: "{{ virtual_domains | json_query('[*].name') }}"
75
+
76
+- name: Enable Apache wstunnel module
77
+  command: a2enmod proxy_wstunnel creates=/etc/apache2/mods-enabled/proxy_wstunnel.load
78
+  notify: restart apache

+ 2
- 0
roles/blog/templates/etc_apache2_sites-available_commento.j2 View File

@@ -18,6 +18,8 @@
18 18
 
19 19
     ProxyRequests           On
20 20
     ProxyPreserveHost       On
21
+    ProxyPass               /ws ws://localhost:{{ commento_internal_port }}/ws
22
+    ProxyPassReverse        /ws ws://localhost:{{ commento_internal_port }}/ws
21 23
     ProxyPass               / http://localhost:{{ commento_internal_port }}/
22 24
     ProxyPassReverse        / http://localhost:{{ commento_internal_port }}/
23 25
 </VirtualHost>

Loading…
Cancel
Save