Re-add autologin
This commit is contained in:
parent
b74e857912
commit
2d307eae53
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2022.11.1"
|
version: "2022.11.0"
|
||||||
slug: "3dprinter-octoprint"
|
slug: "3dprinter-octoprint"
|
||||||
description: "OctoPrint as an addon, no additional bells and whistles."
|
description: "OctoPrint as an addon, no additional bells and whistles."
|
||||||
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"
|
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"
|
||||||
|
|||||||
@ -28,12 +28,12 @@ if [ ! -f /data/config/octoprint/config.yaml ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# # TODO: Check if user already exists before setting password.
|
# TODO: Check if user already exists before setting password.
|
||||||
# { # Make sure Ingress user for OctoPrint exists.
|
{ # Make sure Ingress user for OctoPrint exists.
|
||||||
# bashio::log.notice "Ensure Ingress user (homeassistant) exist."
|
bashio::log.notice "Ensure Ingress user (homeassistant) exist."
|
||||||
# # new_password=$(date +%s | sha256sum | base64 | head -c 32 ; echo)
|
new_password=$(date +%s | sha256sum | base64 | head -c 32 ; echo)
|
||||||
# new_password=homeassistant
|
new_password=homeassistant
|
||||||
# octoprint --basedir /data/config/octoprint user add homeassistant --password "$new_password" --group users --group admins # 2> /dev/null
|
octoprint --basedir /data/config/octoprint user add homeassistant --password "$new_password" --group users --group admins # 2> /dev/null
|
||||||
# } || { # catch
|
} || { # catch
|
||||||
# bashio::log.warning "Failed to ensure Ingress user exists, may not be able to launch."
|
bashio::log.warning "Failed to ensure Ingress user exists, may not be able to launch."
|
||||||
# }
|
}
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
# accessControl:
|
accessControl:
|
||||||
# autologinAs: homeassistant
|
autologinAs: homeassistant
|
||||||
# autologinLocal: true
|
autologinLocal: true
|
||||||
# localNetworks:
|
localNetworks:
|
||||||
# - 127.0.0.0/8
|
- 127.0.0.0/8
|
||||||
# - ::1/128
|
- ::1/128
|
||||||
# - 172.30.32.2
|
- 172.30.32.2
|
||||||
api:
|
api:
|
||||||
allowCrossOrigin: true
|
allowCrossOrigin: true
|
||||||
folder:
|
folder:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user