forked from Ivasoft/opds-proxy
chore: rename project
No longer "Kobo" specific
This commit is contained in:
@@ -14,7 +14,7 @@ RUN wget https://web.archive.org/web/20150803131026if_/https://kindlegen.s3.amaz
|
||||
cp kindlegen/kindlegen /usr/local/bin/kindlegen && \
|
||||
chmod +x /usr/local/bin/kindlegen
|
||||
|
||||
WORKDIR /src/kobo-opds-proxy/app/
|
||||
WORKDIR /src/opds-proxy/app/
|
||||
|
||||
COPY go.mod .
|
||||
COPY go.sum .
|
||||
@@ -30,6 +30,6 @@ FROM gcr.io/distroless/static
|
||||
|
||||
COPY --from=base /usr/local/bin/kepubify /usr/local/bin/kepubify
|
||||
COPY --from=base /usr/local/bin/kindlegen /usr/local/bin/kindlegen
|
||||
COPY --from=base /src/kobo-opds-proxy/app/opds-proxy .
|
||||
COPY --from=base /src/opds-proxy/app/opds-proxy .
|
||||
|
||||
CMD ["./opds-proxy"]
|
||||
2
go.mod
2
go.mod
@@ -1,3 +1,3 @@
|
||||
module github.com/evan-buss/kobo-opds-proxy
|
||||
module github.com/evan-buss/opds-proxy
|
||||
|
||||
go 1.22
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/evan-buss/kobo-opds-proxy/opds"
|
||||
"github.com/evan-buss/opds-proxy/opds"
|
||||
)
|
||||
|
||||
type FeedViewModel struct {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"html/template"
|
||||
"io"
|
||||
|
||||
"github.com/evan-buss/kobo-opds-proxy/opds"
|
||||
"github.com/evan-buss/opds-proxy/opds"
|
||||
)
|
||||
|
||||
//go:embed *
|
||||
|
||||
6
main.go
6
main.go
@@ -13,9 +13,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/evan-buss/kobo-opds-proxy/convert"
|
||||
"github.com/evan-buss/kobo-opds-proxy/html"
|
||||
"github.com/evan-buss/kobo-opds-proxy/opds"
|
||||
"github.com/evan-buss/opds-proxy/convert"
|
||||
"github.com/evan-buss/opds-proxy/html"
|
||||
"github.com/evan-buss/opds-proxy/opds"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"github.com/evan-buss/kobo-opds-proxy/html"
|
||||
"github.com/evan-buss/opds-proxy/html"
|
||||
)
|
||||
|
||||
type Middleware func(http.HandlerFunc) http.HandlerFunc
|
||||
@@ -21,8 +20,6 @@ func NewServer() *Server {
|
||||
port = "8080"
|
||||
}
|
||||
|
||||
fmt.Println(os.Getenv("PATH"))
|
||||
|
||||
router := http.NewServeMux()
|
||||
router.HandleFunc("GET /{$}", handleHome())
|
||||
router.HandleFunc("GET /feed", handleFeed("tmp/"))
|
||||
|
||||
Reference in New Issue
Block a user