diff --git a/Dockerfile b/Dockerfile index ea866d24..861a3740 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,7 @@ RUN apk --no-cache add ca-certificates python3 py3-pip ffmpeg tzdata \ COPY --from=builder /usr/bin/yt-dlp /usr/local/bin/youtube-dl COPY --from=builder /build/bin/podsync /app/podsync +COPY --from=builder /build/html/index.html /app/html/index.html ENTRYPOINT ["/app/podsync"] CMD ["--no-banner"] diff --git a/cmd/podsync/main.go b/cmd/podsync/main.go index 19c68091..f9f8ed92 100644 --- a/cmd/podsync/main.go +++ b/cmd/podsync/main.go @@ -125,9 +125,9 @@ func main() { var storage fs.Storage switch cfg.Storage.Type { case "local": - storage, err = fs.NewLocal(cfg.Storage.Local.DataDir) + storage, err = fs.NewLocal(cfg.Storage.Local.DataDir, cfg.Server.WebUIEnabled) case "s3": - storage, err = fs.NewS3(cfg.Storage.S3) + storage, err = fs.NewS3(cfg.Storage.S3) // serving files from S3 is not supported, so no WebUI either default: log.Fatalf("unknown storage type: %s", cfg.Storage.Type) } diff --git a/config.toml.example b/config.toml.example index 611a8c46..539735f3 100644 --- a/config.toml.example +++ b/config.toml.example @@ -17,6 +17,8 @@ hostname = "https://my.test.host:4443" bind_address = "172.20.10.2" # Specify path for reverse proxy and only [A-Za-z0-9] path = "test" +# Optional. Enable Web UI. Feeds have to be include in OPML file to appear (see below) +web_ui = true # Optional. If you want to use TLS you must set the TLS flag and path to the certificate file and private key file. tls = true certificate_path = "/var/www/cert.pem" diff --git a/html/index.html b/html/index.html new file mode 100755 index 00000000..e7846dda --- /dev/null +++ b/html/index.html @@ -0,0 +1,776 @@ + + +
+ + +Loading episodes from feeds...
+