-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filesystem changes #6466
base: master
Are you sure you want to change the base?
filesystem changes #6466
Conversation
@mohammed90 can you try this? when i run caddyfile adapt, i get
not sure if this is right still. |
note for myself: notify these projects https://github.com/sagikazarmark/caddy-fs-s3 |
This works! See mohammed90/caddy-git-fs#2. I had to introduce a local interface to reach the
I wonder if it's possible to reduce the nesting. In other words, to make it:
or if necessary at all 🤔 |
Nit, but should it be |
https://caddyserver.com/docs/caddyfile/options#storage dont think it's a nit, i think you're right, you already use file_system elsewhere in the project. will change soon |
@@ -20,13 +20,13 @@ func init() { | |||
|
|||
type moduleEntry struct { | |||
Key string `json:"name,omitempty"` | |||
FileSystemRaw json.RawMessage `json:"file_system,omitempty" caddy:"namespace=caddy.fs inline_key=backend"` | |||
FileSystemRaw json.RawMessage `json:"filesystem,omitempty" caddy:"namespace=caddy.fs inline_key=backend"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FileSystemRaw json.RawMessage `json:"filesystem,omitempty" caddy:"namespace=caddy.fs inline_key=backend"` | |
FileSystemRaw json.RawMessage `json:"file_system,omitempty" caddy:"namespace=caddy.fs inline_key=backend"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh? The point of this PR is to fix that, but you're suggesting reverting the fix back to status-quo. I'm confused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, well I thought we agreed it was two words: #6466 (comment) (see also next comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i changed this in other places (see httptype.go), but i did not change it here in fear of breaking existing caddyfiles.
No description provided.