diff --git a/lotus-land-story/homebox.yml b/lotus-land-story/homebox.yml
new file mode 100644
index 0000000..b7b4c66
--- /dev/null
+++ b/lotus-land-story/homebox.yml
@@ -0,0 +1,37 @@
+- name: Set up Homebox
+ hosts: lotus-land-story
+ vars:
+ version: 0.21.0
+ vars_files:
+ - vars.yml
+ tasks:
+
+ - name: Create data directory for Homebox
+ ansible.builtin.file:
+ path: /mnt/lotus-land-story/homebox
+ state: directory
+ mode: "0755"
+ owner: "65532"
+ group: "65532"
+
+ - name: Run Homebox
+ community.docker.docker_container:
+ name: homebox
+ image: ghcr.io/sysadminsmedia/homebox:{{ version }}
+ restart: true
+ env:
+ TZ: America/Los_Angeles
+ HBOX_OPTIONS_ALLOW_ANALYTICS: "false"
+ HBOX_OPTIONS_ALLOW_REGISTRATION: "false"
+ HBOX_MAILER_HOST: mail.smtp2go.com
+ HBOX_MAILER_PORT: "2525"
+ HBOX_MAILER_USERNAME: "{{ homebox.mailer.username }}"
+ HBOX_MAILER_PASSWORD: "{{ homebox.mailer.password }}"
+ HBOX_MAILER_FROM: homebox@kejadlen.dev
+ volumes:
+ - /mnt/lotus-land-story/homebox:/data
+ restart_policy: unless-stopped
+ networks:
+ - name: lotus_land_story
+
+# vim: ft=yaml.ansible
diff --git a/lotus-land-story/main.yml b/lotus-land-story/main.yml
index cbdee05..c4574cb 100644
--- a/lotus-land-story/main.yml
+++ b/lotus-land-story/main.yml
@@ -63,5 +63,6 @@
- import_playbook: caddy.yml # noqa: name[play]
- import_playbook: security.yml # noqa: name[play]
- import_playbook: backup.yml # noqa: name[play]
+- import_playbook: homebox.yml # noqa: name[play]
# vim: ft=yaml.ansible
diff --git a/lotus-land-story/templates/Caddyfile b/lotus-land-story/templates/Caddyfile
index f6ef84c..c6c3b35 100644
--- a/lotus-land-story/templates/Caddyfile
+++ b/lotus-land-story/templates/Caddyfile
@@ -129,14 +129,11 @@ docs {
}
}
-# homeassistant {
-# tls internal
-# bind tailscale/homeassistant
-# tailscale_auth
-# reverse_proxy calibre-web:8083 {
-# header_up Remote-User {http.auth.user.tailscale_user}
-# }
-# }
+homebox {
+ tls internal
+ bind tailscale/homebox
+ reverse_proxy homebox:7745
+}
### Internal