Skip to content

Commit

Permalink
Merge pull request #468 from joereuss12/enable-dir-listing-branch
Browse files Browse the repository at this point in the history
Adding dir listing capability to Pelican Origins
  • Loading branch information
turetske authored Dec 6, 2023
2 parents db8cb9e + 5853896 commit 9969933
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 8 additions & 0 deletions docs/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,14 @@ type: bool
default: true
components: ["origin"]
---
name: Origin.EnableDirListing
description: >-
Allows the origin to enable directory listings. Needs to be enabled for recursive
downloads to work properly and for directories to be visable.
type: bool
default: false
components: ["origin"]
---

############################
# Cache-level configs #
Expand Down
3 changes: 3 additions & 0 deletions xrootd/resources/xrootd-origin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ xrd.tlsca certdir {{.Server.TLSCACertificateDirectory}}
{{else}}
xrd.tlsca certfile {{.Server.TLSCACertificateFile}}
{{end}}
{{if eq .Origin.EnableDirListing false}}
http.listingdeny true
{{end}}
{{if .Origin.EnableMacaroons}}
http.exthandler xrdmacaroons libXrdMacaroons.so
macaroons.secretkey {{.Xrootd.MacaroonsKeyFile}}
Expand Down
13 changes: 7 additions & 6 deletions xrootd/xrootd_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ var (

type (
OriginConfig struct {
Multiuser bool
EnableCmsd bool
EnableMacaroons bool
EnableVoms bool
SelfTest bool
NamespacePrefix string
Multiuser bool
EnableCmsd bool
EnableMacaroons bool
EnableVoms bool
EnableDirListing bool
SelfTest bool
NamespacePrefix string
}

CacheConfig struct {
Expand Down

0 comments on commit 9969933

Please sign in to comment.