mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
commit
93a64fc1f8
3 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue