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

Commit 2616f3e

Browse files
committed
added init landingpage
1 parent 0d2b168 commit 2616f3e

File tree

2,171 files changed

+359573
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,171 files changed

+359573
-14
lines changed

Base.Pifile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ RUN useradd --system \
4747
--comment "Caddy web server" \
4848
caddy
4949

50+
# Install filebrowser
51+
RUN bash -c "curl -L https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-arm64-filebrowser.tar.gz | tar xz filebrowser"
52+
RUN mv filebrowser /usr/bin/filebrowser
53+
5054
# Install mosquitto
5155
RUN apt-get install -y mosquitto mosquitto-clients
5256

etc/caddy/Caddyfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
:80 {
22
encode gzip
3+
4+
root * /home/pi/html
5+
file_server
36

47
handle_path /sysdweb/* {
58
reverse_proxy http://localhost:10080
69
}
7-
10+
11+
handle_path /data/* {
12+
reverse_proxy http://localhost:8080
13+
}
14+
815
route /radiotracking/* {
916
reverse_proxy http://localhost:8050
1017
}
1118

1219
route /radiotracking-config/* {
1320
reverse_proxy http://localhost:8051
1421
}
15-
16-
file_server * browse {
17-
root /data/
18-
}
19-
}
22+
}

etc/filebrowser/filebrowser.db

64 KB
Binary file not shown.

etc/filebrowser/filebrowser.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
address: "localhost"
2+
port: 8080
3+
baseurl: "/data/"
4+
5+
auth:
6+
method: "noauth"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Unit]
2+
Description=filebrowser
3+
After=network.target
4+
5+
[Service]
6+
WorkingDirectory=/data/
7+
ExecStart=/usr/bin/filebrowser -d /etc/filebrowser/filebrowser.db -c /etc/filebrowser/filebrowser.yml --noauth
8+
Restart=always
9+
RestartSec=10s
10+
11+
[Install]
12+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)