ソースを参照

fix commento websocket proxy

Thomas Buck 2年前
コミット
b12aa08e13

+ 4
- 0
roles/blog/tasks/commento.yml ファイルの表示

72
   command: a2ensite commento_{{ item }}.conf creates=/etc/apache2/sites-enabled/commento_{{ item }}.conf
72
   command: a2ensite commento_{{ item }}.conf creates=/etc/apache2/sites-enabled/commento_{{ item }}.conf
73
   notify: restart apache
73
   notify: restart apache
74
   with_items: "{{ virtual_domains | json_query('[*].name') }}"
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 ファイルの表示

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

読み込み中…
キャンセル
保存