bfile/resource/resourced.toml.example

47 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2023-11-05 04:13:02 +01:00
# The resourceD config
[resourceD]
2023-11-05 04:13:02 +01:00
# Whether to enable the resourceD.
# If this is false, resourceD will start but respond to
# all requests with 404
# It is false by default because resourceD is not required in a default installation.
enabled=true
2023-11-05 04:13:02 +01:00
# URL to listen on
listen_url="0.0.0.0:80"
2023-11-05 04:13:02 +01:00
# Minibal size of a file to be cached
# File size is parsed via this library:
# https://github.com/dustin/go-humanize
proxy_cache_min_size="5MB"
2023-11-05 04:13:02 +01:00
# Resource ID must be like a java package name
# At least one X.X. is required
#
# Examples:
# org.university.logo
# dev.indie_guy.logo
# com.pany.logo
# Test your names here: https://regex101.com/r/wQdOup/2
[resource."com.example.logo"]
2023-11-05 04:13:02 +01:00
# Can also be an external link
# If an external link is specified,
# the resource will be returned as a 302 redirect to the link
url="file:///some/where"
2023-11-05 04:13:02 +01:00
# File type, as according to this:
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
mime="image/jpg"
2023-11-05 05:09:30 +01:00
# (if url is an http(s) url))
# Whether to proxy the resource.
# true - Send the resource like a regular file
# false - Send a 302 HTTP redirect to the URL (default)
#
# It is not recommended to set this to `true`
# unless you are referring to a resource that is
# available only in the local network
#
# proxied=true