Static files
Enable HTTP middleware
version: "3"
http:
# host and port separated by semicolon
address: 127.0.0.1:44933
middleware: [ "static" ] # Add static to the list of middleware
static:
dir: "."
forbid: [ "" ]
calculate_etag: false
weak: false
allow: [ ".txt", ".php" ]
request:
input: "custom-header"
response:
output: "output-header"Fileserver plugin
File server configuration
Last updated