Locations - ITotalJustice/sphaira GitHub Wiki

Locations

locations is a file in /config/sphaira/locations.ini which has a list of urls which files and games can be uploaded to.

here is an example file:

[self - test]
url = ftp://192.168.1.228/sdmc:/test/ftp/
port = 5000

[switch2 - install]
url = ftp://192.168.1.219/install:/
port = 5000

[1fitcher]
url = ftp://ftp.1fichier.com
user = username
pass = password

[webdav]
url = webdav://dav.servername.com/dav/uploads
user = username
pass = password

the full list of supported protocols can be found here.

Webdav

webdav is supported, however the URL must start with webdav:// rather than https://. This is used to detect that this host is webdav.

Please ensure that the webdav URL has write permissions. Sphaira will create folders that it uploads, however it will not create folders that exist as part of the URL. Please ensure the folder (if any) that is part of the URL is writeable!


Fields

  • url: the upload url.
  • user: (optional) user name used for auth.
  • pass: (optional) password used for auth.
  • bearer: (optional) oauth bearer token, some hosts require this.
  • pub_key: (optional) path to your public key, used for ssh.
  • priv_key: (optional) path to your private key, used for ssh.
  • port: (optional) mainly used for ftp for setting a custom port other than 21.