Skip to content

Conversation

lollipopkit
Copy link
Contributor

I have tested the config:

:8082 {
	root * .
	file_server browse {
		sort size desc
	}
}
Screenshot 2024-07-22 at 20 32 31

Additionally, a .caddyfiletest file were wrote, but I don't know how to run it.

The related doc PR can be found here.

@CLAassistant
Copy link

CLAassistant commented Jul 22, 2024

CLA assistant check
All committers have signed the CLA.

Comment on lines 24 to 31
"file_server": {
"size": {},
"desc": {}
},
"file_server_order": [
"size",
"desc"
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new field is sort, so these lines cannot be right.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...my fault

@lollipopkit lollipopkit requested a review from mohammed90 August 5, 2024 10:51
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this enhancement. I just want to make sure that the rather freeform input is strictly validated to prevent surprises.

@lollipopkit lollipopkit requested a review from mholt August 5, 2024 13:40
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, getting closer!!

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

I think we can give this a shot. Please help maintain this feature if any bugs are reported 😊

@lollipopkit
Copy link
Contributor Author

Of course. Thanks again :)

@mholt mholt merged commit b198678 into caddyserver:master Aug 5, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants