diff --git a/sketches/doorbell/Dockerfile b/sketches/doorbell/Dockerfile new file mode 100644 index 0000000..c039754 --- /dev/null +++ b/sketches/doorbell/Dockerfile @@ -0,0 +1,11 @@ +FROM nginx:alpine + +# Copy your cocaine chic doorbell UI +COPY doorbell.html /usr/share/nginx/html/index.html + +# Optional: custom nginx config for SPA behavior +COPY nginx.conf /etc/nginx/conf.d/default.conf + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] diff --git a/sketches/doorbell/doorbell.html b/sketches/doorbell/doorbell.html new file mode 100644 index 0000000..ac3c205 --- /dev/null +++ b/sketches/doorbell/doorbell.html @@ -0,0 +1,277 @@ + + + + + + KLUBHAUS ALERT + + + +

KLUBHAUS ALERT

+ +
Checking...
+ +
+ + + + +
+ + +
+
+ +
Sent
+ + + + + diff --git a/sketches/doorbell/nginx.conf b/sketches/doorbell/nginx.conf new file mode 100644 index 0000000..d99d8b3 --- /dev/null +++ b/sketches/doorbell/nginx.conf @@ -0,0 +1,15 @@ +server { + listen 80; + server_name localhost; + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } + + # Security headers + add_header X-Frame-Options "SAMEORIGIN"; + add_header X-Content-Type-Options "nosniff"; +} + diff --git a/sketches/mise.toml b/sketches/mise.toml index ba0ac51..40c1f6c 100644 --- a/sketches/mise.toml +++ b/sketches/mise.toml @@ -7,4 +7,4 @@ run = "arduino-cli monitor" dir = "{{cwd}}" [tasks.snap] -run = "git commit -am snapshot" +run = "git add .; git commit -am snapshot"