diff --git a/roles/network/templates/hostapd/test-wifi b/roles/network/templates/hostapd/test-wifi index f1a1bc66c..32ff15601 100755 --- a/roles/network/templates/hostapd/test-wifi +++ b/roles/network/templates/hostapd/test-wifi @@ -15,6 +15,10 @@ fi # covers raspbian if [ -f /etc/wpa_supplicant/wpa_supplicant.conf ]; then RASPBIAN=1 + if /usr/sbin/rfkill list wifi | grep -q "Soft blocked: yes" ; then + echo "unblocking WiFi" + rfkill unblock wifi + fi SSID=`grep ssid /etc/wpa_supplicant/wpa_supplicant.conf | awk -F = '{print $2}' | sed -r s/\"// | sed -r s/\"//` fi diff --git a/roles/network/templates/network/dnsmasq-iiab b/roles/network/templates/network/dnsmasq-iiab index ecefeb359..ca3911e4f 100644 --- a/roles/network/templates/network/dnsmasq-iiab +++ b/roles/network/templates/network/dnsmasq-iiab @@ -1,7 +1,7 @@ #IIAB bind-interfaces # Wan nameserver if manually set -{% if wan_nameserver != "" %} +{% if wan_nameserver is not none %} no-resolv server={{ wan_nameserver }} {% endif %} diff --git a/roles/nextcloud/templates/nextcloud-nginx.conf.j2 b/roles/nextcloud/templates/nextcloud-nginx.conf.j2 index 8723cb7e5..33575798d 100644 --- a/roles/nextcloud/templates/nextcloud-nginx.conf.j2 +++ b/roles/nextcloud/templates/nextcloud-nginx.conf.j2 @@ -135,7 +135,7 @@ location ^~ {{ nextcloud_url }} { access_log off; } - location ~ ^\/nextcloud\/.+[^\/]\.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$ { + location ~ ^\/nextcloud\/.+[^\/]\.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$ { try_files $uri /nextcloud/index.php$request_uri; # Optional: Don't log access to other assets access_log off;