Commit 67fe49dd authored by Martin's avatar Martin

add websockets support to mumble

parent 44cbeed5
......@@ -196,12 +196,23 @@ http {
root /var/www/html/text;
index index.html;
}
# https://nginx.org/en/docs/http/websocket.html
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name mumble.rys.pw;
root /var/www/html;
index mumble.html;
location /voice {
proxy_pass http://localhost:64737;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
server {
# Listen on 80 cause libxml++ can't deal with HTTPS...
......
[Unit]
Description=Run websocket service for mumble
[Service]
ExecStart=websockify --ssl-target 64737 localhost:64738
ExecStopPost=/bin/bash -c 'if [[ "$$EXIT_STATUS" != 0 ]]; then /usr/local/bin/systemd-email [email protected] %n; fi'
[Install]
WantedBy=default.target
......@@ -7,8 +7,8 @@
become: yes
become_user: "c0rn3j"
shell: gpg --recv-key B5DBD5925590A237
- name: Install AUR packages - hastebin, matomo, lyrics dep
shell: trizen -Syu --noedit --noconfirm --devel --needed haste-server-git matomo perl-text-unidecode
- name: Install AUR packages - hastebin, matomo, lyrics dep, websockets for mumble
shell: trizen -Syu --noedit --noconfirm --devel --needed haste-server-git matomo perl-text-unidecode websockify
become: yes
become_user: "c0rn3j"
- name: Install packages
......@@ -88,6 +88,7 @@
- { unit: 'updateGitPrivatebin.timer' }
- { unit: 'updateGitWiki.service' }
- { unit: 'updateGitWiki.timer' }
- { unit: 'websockifymumble.service' }
- name: Enable and start services and sockets
systemd:
name: "{{ item.unit }}"
......@@ -101,6 +102,7 @@
- { unit: 'murmur.service' }
- { unit: 'nginx.service' }
- { unit: 'haste-server.service' }
- { unit: 'websockifymumble.service' }
- name: Enable timers
systemd:
name: "{{ item.unit }}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment