Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
added init landingpage
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashoechst committed Jan 17, 2023
1 parent 0d2b168 commit 2616f3e
Show file tree
Hide file tree
Showing 2,171 changed files with 359,573 additions and 14 deletions.
4 changes: 4 additions & 0 deletions Base.Pifile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ RUN useradd --system \
--comment "Caddy web server" \
caddy

# Install filebrowser
RUN bash -c "curl -L https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-arm64-filebrowser.tar.gz | tar xz filebrowser"
RUN mv filebrowser /usr/bin/filebrowser

# Install mosquitto
RUN apt-get install -y mosquitto mosquitto-clients

Expand Down
15 changes: 9 additions & 6 deletions etc/caddy/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
:80 {
encode gzip

root * /home/pi/html
file_server

handle_path /sysdweb/* {
reverse_proxy http://localhost:10080
}


handle_path /data/* {
reverse_proxy http://localhost:8080
}

route /radiotracking/* {
reverse_proxy http://localhost:8050
}

route /radiotracking-config/* {
reverse_proxy http://localhost:8051
}

file_server * browse {
root /data/
}
}
}
Binary file added etc/filebrowser/filebrowser.db
Binary file not shown.
6 changes: 6 additions & 0 deletions etc/filebrowser/filebrowser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
address: "localhost"
port: 8080
baseurl: "/data/"

auth:
method: "noauth"
12 changes: 12 additions & 0 deletions etc/systemd/system/filebrowser.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=filebrowser
After=network.target

[Service]
WorkingDirectory=/data/
ExecStart=/usr/bin/filebrowser -d /etc/filebrowser/filebrowser.db -c /etc/filebrowser/filebrowser.yml --noauth
Restart=always
RestartSec=10s

[Install]
WantedBy=multi-user.target
Loading

0 comments on commit 2616f3e

Please sign in to comment.