mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-05-09 14:26:03 +01:00
Initial add of cups add-on
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
mkdir -p /var/run/dbus
|
||||
@@ -0,0 +1,19 @@
|
||||
events {
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
server {
|
||||
listen 8099;
|
||||
|
||||
location / {
|
||||
proxy_pass https://localhost:631;
|
||||
proxy_hide_header X-Frame-Options;
|
||||
proxy_hide_header Content-Security-Policy;
|
||||
add_header Content-Security-Policy "sandbox allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-scripts";
|
||||
sub_filter '"/' '"$http_x_ingress_path/';
|
||||
sub_filter "'/" "'$http_x_ingress_path/";
|
||||
sub_filter_once off;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Wait until D-Bus is up and the init script has mapped in the external hostname
|
||||
until [ -e /var/run/dbus/system_bus_socket ] && [ -e /var/run/avahi_configured ]; do
|
||||
sleep 1s
|
||||
done
|
||||
|
||||
exec avahi-daemon
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec dbus-daemon --system --nofork
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec nginx -g "daemon off;"
|
||||
Reference in New Issue
Block a user