Skip to content

Instantly share code, notes, and snippets.

@gphg
Created November 23, 2022 06:24
Show Gist options
  • Save gphg/980e00db6776b386c41ea3a92b96aa63 to your computer and use it in GitHub Desktop.
Save gphg/980e00db6776b386c41ea3a92b96aa63 to your computer and use it in GitHub Desktop.
Dead-simple Caddy server config file.
:8080
# Points root onto remote's current working directory (as `caddy run` executed)
root * {os.Getwd}
# WebDAV access, requires custom Caddy build.
#@notget not method GET
#route @notget {
# webdav
#}
file_server browse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment