Initial add of cups add-on

This commit is contained in:
Max Winterstein
2022-12-18 13:52:53 +01:00
parent e5720e1202
commit 2ee5d49203
16 changed files with 553 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
mkdir -p /var/run/dbus
+19
View File
@@ -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;
}
}
}
+8
View File
@@ -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
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
exec dbus-daemon --system --nofork
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
exec nginx -g "daemon off;"