Update apparmor profile
This commit is contained in:
parent
5f23e26197
commit
966892bc1b
@ -27,10 +27,6 @@ profile 3dprinter-octoprint flags=(attach_disconnected,mediate_deleted) {
|
||||
# Access to options.json and other files within your addon
|
||||
/data/** rw,
|
||||
|
||||
# nginx
|
||||
/var/lib/nginx/** ix,
|
||||
/var/log/nginx/** rw,
|
||||
|
||||
# Start new profile for service
|
||||
# /usr/bin/my_program cx -> my_program,
|
||||
|
||||
@ -58,4 +54,25 @@ profile 3dprinter-octoprint flags=(attach_disconnected,mediate_deleted) {
|
||||
# /etc/passwd r,
|
||||
# /dev/tty rw,
|
||||
# }
|
||||
|
||||
# Start new profile for service
|
||||
/usr/sbin/nginx cx -> nginx,
|
||||
profile nginx flags=(attach_disconnected,mediate_deleted) {
|
||||
#include <abstractions/base>
|
||||
|
||||
# Receive signals from S6-Overlay
|
||||
signal (receive) peer=*_example,
|
||||
|
||||
/usr/sbin/nginx r,
|
||||
/bin/bash rix,
|
||||
/bin/echo ix,
|
||||
/etc/passwd r,
|
||||
/dev/tty rw,
|
||||
|
||||
/var/log/nginx/access.log w,
|
||||
/var/log/nginx/error.log w,
|
||||
|
||||
# Allow capability CAP_CHOWN
|
||||
capability chown,
|
||||
}
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
name: "3DPrinter-OctoPrint"
|
||||
version: "2022.6.023"
|
||||
version: "2022.6.024"
|
||||
slug: "3dprinter-octoprint"
|
||||
description: "New instance of OctoPrint"
|
||||
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"
|
||||
|
||||
@ -9,13 +9,11 @@ bashio::log.info "nginx cont-init.d"
|
||||
ingress_entry=$(bashio::addon.ingress_entry)
|
||||
export ingress_entry=${ingress_entry}
|
||||
|
||||
|
||||
tempio \
|
||||
-conf /data/options.json \
|
||||
-template /usr/share/tempio/ingress.conf \
|
||||
-out /etc/nginx/sites-enabled/ingress.conf
|
||||
|
||||
|
||||
tempio \
|
||||
-conf /data/options.json \
|
||||
-template /usr/share/tempio/webui.conf \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user