move templates into subdirs
parent
ea80f2e2f5
commit
1ef7fbb1b5
|
@ -19,6 +19,7 @@ mumble_web_certificate: "{{ acme_certs_dir }}/{{ mumble_web_domain }}.d/{{ acme_
|
||||||
mumble_web_trusted_certificate: "{{ acme_certs_dir }}/{{ mumble_web_domain }}.d/chain.pem"
|
mumble_web_trusted_certificate: "{{ acme_certs_dir }}/{{ mumble_web_domain }}.d/chain.pem"
|
||||||
mumble_web_private_key: "{{ acme_keys_dir }}/{{ mumble_web_domain }}.key"
|
mumble_web_private_key: "{{ acme_keys_dir }}/{{ mumble_web_domain }}.key"
|
||||||
mumble_web_www_dir: /var/www/mumble-web
|
mumble_web_www_dir: /var/www/mumble-web
|
||||||
|
mumble_web_dist_dir: "{{ mumble_web_www_dir }}/dist"
|
||||||
mumble_web_version: master
|
mumble_web_version: master
|
||||||
mumble_web_websockify_port: "64737"
|
mumble_web_websockify_port: "64737"
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
- name: Copy mumble-web config file
|
- name: Copy mumble-web config file
|
||||||
template:
|
template:
|
||||||
src: mumble-web.js.j2
|
src: mumble-web/config.js.j2
|
||||||
dest: "{{ mumble_web_www_dir }}/dist/config.local.js"
|
dest: "{{ mumble_web_www_dir }}/dist/config.local.js"
|
||||||
owner: "{{ mumble_web_owner }}"
|
owner: "{{ mumble_web_owner }}"
|
||||||
group: "{{ mumble_web_group }}"
|
group: "{{ mumble_web_group }}"
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
- name: Copy mumble-web systemd service
|
- name: Copy mumble-web systemd service
|
||||||
template:
|
template:
|
||||||
src: mumble-web.service.j2
|
src: mumble-web/mumble-web.service.j2
|
||||||
dest: /etc/systemd/system/mumble-web.service
|
dest: /etc/systemd/system/mumble-web.service
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
- name: Copy Murmur config file
|
- name: Copy Murmur config file
|
||||||
template:
|
template:
|
||||||
src: mumble-server.ini.j2
|
src: murmur/mumble-server.ini.j2
|
||||||
dest: /etc/mumble-server.ini
|
dest: /etc/mumble-server.ini
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ murmur_group }}"
|
group: "{{ murmur_group }}"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- name: Copy Nginx config file
|
- name: Copy Nginx config file
|
||||||
template:
|
template:
|
||||||
src: nginx.conf.j2
|
src: mumble-web/nginx.conf.j2
|
||||||
dest: "{{ mumble_web_nginx_config_dir }}/sites-available/mumble.conf"
|
dest: "{{ mumble_web_nginx_config_dir }}/sites-available/mumble.conf"
|
||||||
owner: root
|
owner: root
|
||||||
group: www-data
|
group: www-data
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
- name: Copy umurmur config file
|
- name: Copy umurmur config file
|
||||||
template:
|
template:
|
||||||
src: umurmur.conf.j2
|
src: umurmur/umurmur.conf.j2
|
||||||
dest: /usr/local/etc/umurmur.conf
|
dest: /usr/local/etc/umurmur.conf
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ umurmur_ssl_group }}"
|
group: "{{ umurmur_ssl_group }}"
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
- name: Copy umurmur systemd service
|
- name: Copy umurmur systemd service
|
||||||
template:
|
template:
|
||||||
src: umurmur.service.j2
|
src: umurmur/umurmur.service.j2
|
||||||
dest: /etc/systemd/system/umurmur.service
|
dest: /etc/systemd/system/umurmur.service
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
|
@ -53,11 +53,11 @@ server {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /var/www/mumble-web/dist/;
|
root {{ mumble_web_dist_dir }};
|
||||||
}
|
}
|
||||||
|
|
||||||
location /mumble {
|
location /mumble {
|
||||||
proxy_pass http://127.0.0.1:{{ mumble_web_websockify_port }};
|
proxy_pass http://localhost:{{ mumble_web_websockify_port }};
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $connection_upgrade;
|
proxy_set_header Connection $connection_upgrade;
|
Loading…
Reference in New Issue