Supported protocols
The scheme at the start of a source’s url selects the protocol that
Kiln uses to read it.
| Scheme | Protocol | Miyoo | RG35XXSP |
|---|---|---|---|
torrent:// | BitTorrent, from a .torrent file at the https:// address after the scheme | yes | yes |
magnet: | BitTorrent, from a magnet link | yes | yes |
http://, https:// | HTTP and HTTPS | yes | yes |
webdav://, webdavs:// | WebDAV over HTTP or HTTPS | yes | yes |
ftp://, ftps:// | FTP, and FTP over TLS | yes | yes |
sftp:// | SFTP over SSH | no | yes |
smb:// | SMB 2 and 3, the protocol of Windows and Samba shares | yes | yes |
lexaloffle-bbs:featured | The featured PICO-8 carts of the Lexaloffle BBS | yes | yes |
Write spaces and other special characters of a URL as %20 and so on,
as in a browser’s address bar. path, archive and the patterns are
plain text and need no such encoding.
A URL can contain a login, as in ftp://user:password@host/. Do not
share a file with a password in it. Kiln can read logins from a separate
file instead. See Logins and certificates.
BitTorrent
[[source]]
url = "torrent://example.org/sets/Nintendo%20-%20Game%20Boy.torrent"
path = "Nintendo - Game Boy/"
include = ["*.zip"]
For torrent://example.org/x.torrent, Kiln downloads
https://example.org/x.torrent and reads it. The file list of the
torrent is the list of games, and a download fetches only the file you
choose. A magnet link works the same way. Kiln first fetches the
torrent’s information from its peers, for two minutes at most.
A torrent always contains files, so its as is "listing", or
"archive" for a zip inside it. Kiln does not upload data to other
peers.
Kiln reads large torrents. The Miyoo reads up to 20,000 files of one
source, and the RG35XXSP up to 200,000. Use path and include to
limit the list to the files of the folder.
HTTP
[[source]]
url = "https://example.org/files/gba/"
A URL that ends with / is a folder. Kiln reads the file list page that
Apache, nginx and lighttpd generate for a folder without an index page.
For a server without that page, write an
index file and set as = "index" in the source.
A URL that does not end with / is one file.
WebDAV
[[source]]
url = "webdavs://cloud.example.org/remote.php/dav/files/alice/Games/GBA/"
webdav:// uses HTTP and webdavs:// uses HTTPS. Nextcloud, ownCloud,
many NAS systems and rclone’s WebDAV server support WebDAV.
FTP
[[source]]
url = "ftps://nas.local:2121/games/snes/"
ftps://is FTP with explicit TLS, which starts with theAUTH TLScommand.- Kiln uses passive mode only.
- On the Miyoo, Kiln cannot resume an FTP download, or read part of a file, past 4 GiB.
SFTP
Only the RG35XXSP supports SFTP.
[[source]]
url = "sftp://games@nas.local/srv/games/psx/"
Kiln logs in with a password, or with a private key without a passphrase. On the first connection to a server, Kiln saves the server’s key. A different key on a later connection is an error. See Logins and certificates.
SMB
[[source]]
url = "smb://nas.local/Games/MD/"
The URL has the form smb://host/share/folder/. Without a user, Kiln
logs in as a guest. For a user in a domain, write
smb://DOMAIN;user@host/share/.
Lexaloffle BBS
[[source]]
url = "lexaloffle-bbs:featured"
This source lists the featured PICO-8 carts, for the PICO folder. It
accepts no as, path, depth or archive. See
PICO-8.
Server requirements
- To resume a download, the server must support partial downloads. HTTP
and WebDAV servers support them with
Range, and FTP servers withREST. SFTP and SMB servers always support them. When the server does not, or when the file on the server changed, Kiln downloads the file again from the start. as = "archive"needs partial downloads too, because Kiln downloads only the bytes of one file of the zip. With a server that does not support them, the source shows an error. Kiln never downloads the whole zip instead.- A folder over HTTP needs the server’s file list page, as described above.