Skip to content

Instantly share code, notes, and snippets.

@randy3k
randy3k / octopi
Last active June 9, 2024 12:02
octopi/octoprint config for nginx proxy manager
location ~ ^/webcam/(.*) {
rewrite ^/webcam/(.*) /octopi/webcam/$1 redirect;
}
location /octopi/ {
if ($scheme != "https") {
rewrite ^ https://$host$uri permanent;
}
rewrite ^/octopi/(.*)$ /$1 break;
proxy_pass http://192.168.0.167;
@AlexxIT
AlexxIT / remove_device.yaml
Created August 30, 2020 09:18
Home Assistant remove Device automation
# custom component: https://github.com/AlexxIT/PythonScriptsPro
python_script:
automation:
trigger:
platform: event
event_type: device_registry_updated
action:
service: python_script.exec
data_template: