Skip to content

Commit

Permalink
chore(deps): Bumping httputils and pdfjs deps
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Jul 2, 2024
1 parent a11e218 commit 6c1c777
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Usage of fibr:
--authUsers string slice [auth] Users credentials in the form 'id:login:password' ${FIBR_AUTH_USERS}, as a string slice, environment variable separated by "|"
--cert string [server] Certificate file ${FIBR_CERT}
--chunkUpload [crud] Use chunk upload in browser ${FIBR_CHUNK_UPLOAD} (default false)
--csp string [owasp] Content-Security-Policy ${FIBR_CSP} (default "default-src 'self'; base-uri 'self'; script-src 'self' 'httputils-nonce' unpkg.com/[email protected]/dist-cjs/ unpkg.com/[email protected]/dist/ unpkg.com/[email protected]/ cdn.jsdelivr.net/npm/pdfjs-dist@4.3.136/; style-src 'self' 'httputils-nonce' unpkg.com/[email protected]/dist/ unpkg.com/[email protected]/; img-src 'self' data: a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org; worker-src blob:")
--csp string [owasp] Content-Security-Policy ${FIBR_CSP} (default "default-src 'self'; base-uri 'self'; script-src 'self' 'httputils-nonce' unpkg.com/[email protected]/dist-cjs/ unpkg.com/[email protected]/dist/ unpkg.com/[email protected]/ cdn.jsdelivr.net/npm/pdfjs-dist@4.4.168/; style-src 'self' 'httputils-nonce' unpkg.com/[email protected]/dist/ unpkg.com/[email protected]/; img-src 'self' data: a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org; worker-src blob:")
--exifAmqpExchange string [exif] AMQP Exchange Name ${FIBR_EXIF_AMQP_EXCHANGE} (default "fibr")
--exifAmqpRoutingKey string [exif] AMQP Routing Key for exif ${FIBR_EXIF_AMQP_ROUTING_KEY} (default "exif_input")
--exifDirectAccess [exif] Use Exas with direct access to filesystem (no large file upload, send a GET request, Basic Auth recommended) ${FIBR_EXIF_DIRECT_ACCESS} (default false)
Expand Down
2 changes: 1 addition & 1 deletion cmd/fibr/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func newConfig() configuration {
health: health.Flags(fs, ""),

server: server.Flags(fs, "", flags.NewOverride("ReadTimeout", time.Minute*2), flags.NewOverride("WriteTimeout", time.Minute*2)),
owasp: owasp.Flags(fs, "", flags.NewOverride("FrameOptions", "SAMEORIGIN"), flags.NewOverride("Csp", "default-src 'self'; base-uri 'self'; script-src 'self' 'httputils-nonce' unpkg.com/[email protected]/dist-cjs/ unpkg.com/[email protected]/dist/ unpkg.com/[email protected]/ cdn.jsdelivr.net/npm/pdfjs-dist@4.3.136/; style-src 'self' 'httputils-nonce' unpkg.com/[email protected]/dist/ unpkg.com/[email protected]/; img-src 'self' data: a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org; worker-src blob:")),
owasp: owasp.Flags(fs, "", flags.NewOverride("FrameOptions", "SAMEORIGIN"), flags.NewOverride("Csp", "default-src 'self'; base-uri 'self'; script-src 'self' 'httputils-nonce' unpkg.com/[email protected]/dist-cjs/ unpkg.com/[email protected]/dist/ unpkg.com/[email protected]/ cdn.jsdelivr.net/npm/pdfjs-dist@4.4.168/; style-src 'self' 'httputils-nonce' unpkg.com/[email protected]/dist/ unpkg.com/[email protected]/; img-src 'self' data: a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org; worker-src blob:")),
renderer: renderer.Flags(fs, "", flags.NewOverride("PublicURL", "http://localhost:1080"), flags.NewOverride("Title", "fibr")),

basic: basicMemory.Flags(fs, "auth", flags.NewOverride("Profiles", []string{"1:admin"})),
Expand Down
4 changes: 2 additions & 2 deletions cmd/fibr/static/scripts/pdf.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as pdfjs from "https://cdn.jsdelivr.net/npm/pdfjs-dist@4.3.136/+esm";
import * as pdfjs from "https://cdn.jsdelivr.net/npm/pdfjs-dist@4.4.168/+esm";

pdfjs.GlobalWorkerOptions.workerSrc = new URL(
"https://cdn.jsdelivr.net/npm/pdfjs-dist@4.3.136/build/pdf.worker.min.mjs",
"https://cdn.jsdelivr.net/npm/pdfjs-dist@4.4.168/build/pdf.worker.min.mjs",
import.meta.url,
).toString();

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ go 1.22
toolchain go1.22.0

require (
github.com/ViBiOh/ChatPotte v0.4.7
github.com/ViBiOh/ChatPotte v0.5.0
github.com/ViBiOh/absto v1.7.11
github.com/ViBiOh/auth/v2 v2.20.1
github.com/ViBiOh/exas v0.8.1
github.com/ViBiOh/flags v1.5.0
github.com/ViBiOh/httputils/v4 v4.77.3
github.com/ViBiOh/httputils/v4 v4.78.0
github.com/ViBiOh/vith v0.6.0
github.com/rabbitmq/amqp091-go v1.10.0
github.com/redis/go-redis/v9 v9.5.3
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/ViBiOh/ChatPotte v0.4.7 h1:Y0CJKi/FYXQd1UpRyT7WF/FhNO93DPrFQ64HcSYxnfw=
github.com/ViBiOh/ChatPotte v0.4.7/go.mod h1:u1o4Y9vTUanC8Sx9vdgw6QP3XOhf9LAUUpXU5WyCgGs=
github.com/ViBiOh/ChatPotte v0.5.0 h1:JhUpFZBED/5gcvdNcGIw5tRrXJEk9Bun1ZNxQ6gcclM=
github.com/ViBiOh/ChatPotte v0.5.0/go.mod h1:xy9flNDXcLke9wi8mIGWJlB4qMb0eKbXCtcyctDnkxE=
github.com/ViBiOh/absto v1.7.11 h1:u5sBBhxzuWgx5WAUW2pgb3CByb6bAmQSNEpDfiB+084=
github.com/ViBiOh/absto v1.7.11/go.mod h1:LDTCI4LhNN1dBi4RLJk4U2HbRePANA+SdsNONmrkDIQ=
github.com/ViBiOh/auth/v2 v2.20.1 h1:2sNenkD9Oixkmvxmy+ohbvsoYWzGE2twUDtX5lSEEIM=
Expand All @@ -8,8 +8,8 @@ github.com/ViBiOh/exas v0.8.1 h1:bXrWK99ze7MLMfjD+pp/NHngOSkR1eqcCVWlNNxLT/M=
github.com/ViBiOh/exas v0.8.1/go.mod h1:aldybvPY4yJQlvUpq6GJluGxH+7prpaJjDQ03t3VvCw=
github.com/ViBiOh/flags v1.5.0 h1:nwuFS8tAwtV6rTPpv2pCB+r12WjZYLjluW7yT+SeVpQ=
github.com/ViBiOh/flags v1.5.0/go.mod h1:39UMuTnKsIp6walgD8dK99KRCb4DJt9vPtbWehHh1T0=
github.com/ViBiOh/httputils/v4 v4.77.3 h1:XlBd+U0yF/geT68mEiBa6T8/1HG6oqXorTPkkcyaBq0=
github.com/ViBiOh/httputils/v4 v4.77.3/go.mod h1:ZtZ2sDUi2ZNDOgGyDIUQJHBGam+EgfdCzPXQYy/ipa8=
github.com/ViBiOh/httputils/v4 v4.78.0 h1:AHXQZVu5Eenb5xQsBSZbgY7p1Gm3QYLDni2oy+GjHyI=
github.com/ViBiOh/httputils/v4 v4.78.0/go.mod h1:ZtZ2sDUi2ZNDOgGyDIUQJHBGam+EgfdCzPXQYy/ipa8=
github.com/ViBiOh/vith v0.6.0 h1:bdLmwgqUEWi3ivShtAhtM9gOZlWQzvZi2Z5b0BRSB1U=
github.com/ViBiOh/vith v0.6.0/go.mod h1:eRqtDU2uB8g85vll4spbnCV93DHyHNAYwXCMIBH1GuQ=
github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs=
Expand Down

0 comments on commit 6c1c777

Please sign in to comment.