Serve your switch homebrews .XCI .NSP .NSZ at your personal server (with passwords or not), and low resource usage! compared with NUT projects available...
Serve your switch homebrews .XCI .NSP .NSZ at your personal server (with passwords or not), and low resource usage! compared with NUT projects available...
A Docker based Tinfoil Server - you could download code and
npm run devas well...
With this server Tinfoil users can serve all .NSP .XCI files in local network with docker easily without file count limits !
R: Yes, you can thought AUTH_USERS env explained more at
docker-compose.ymlsample, (this block access to/shop.jsonon browser too)
# before starts the server it shows which users has login credentials
tinfoil-hat Auth Users Loaded: 'admin,other' +0ms
tinfoil-hat ------------------ TinfoilHat Started v1.1.0 ------------------ +5msshop.json and shop.tfl at home index ?R: To avoid a TINFOIL strange BUG when lists
shop.tflurl. Basically when TINFOIL see too many folders on files index, home page (ex.: 100 folders links) TINFOIL can't traverse all html and reachshop.tflfile
version: "3"
services:
tinfoil-hat:
labels:
# same scop used by watchtower to self update image
- "com.centurylinklabs.watchtower.scope=tinfoilhat"
container_name: tinfoil-hat
build: .
image: vinicioslc/tinfoil-hat:latest
environment:
# show all debug information on server logs (http info and more)
- DEBUG=*
# only show tinfoil-hat information on logs
# - DEBUG=tinfoil-hat
# users list authorized to access tinfoil-hat user and password separated by ":" and users separated by "," :
- AUTH_USERS=tinfoiler:password,othertinfoiler:otherpassword
- UNAUTHORIZED_MSG='No tricks and treats for you!!'
- WELCOME_MSG='The Server Just Works!!'
- NX_PORTS=5000 # ftp port used to sync saves
# - UNAUTHORIZED_MSG= # message shown when credentials are incorrect
# - NX_IPS= # devices ips that will be saves sync separated by ";"
# - SAVE_SYNC_INTERVAL= # interval in millisseconds that will try sync saves How it works :
1. First you need backup your saves using Tinfoil or JKSV the folders path supported are `/JKSV` and `/switch/tinfoil/saves`
> Both folders will be downloaded to `//Saves/JKSV` and `//Saves/Tinfoil` this will ensure these folders will be found by tinfoil app.
2. You need to serve your Switch files at network using ftpd
##### Setup sys-ftpd on the Switch
- Install sys-ftpd - available as sys ftpd light in the Homebrew Menu
- Install ovl-sysmodule from Homebrew Menu - optional but recommended
Follow the sys-ftpd configuration to set up the user, password and port used for the FTP connection. Note these for Ownfoil configuration, as well as the IP of your Switch. If you installed ovl-sysmodule you can toggle on/off the FTP server using the Tesla overlay.
It is recommended to test the FTP connection at least once with a regular FTP Client to make sure everything is working as expected on the switch.
3. To start sync saves inside Tinfoil app on switch connect and list the server homebrews to the server recongnize the switch IP and start sync
- This will allow the server "capture" the switch device IP and start to syncing it
4. After first sync the server will fetch periodically using sync interval.
## We want
- [ ] Organize and rename app listing by GAMEID
- [ ] Have a gui to override and customize TITLEID info on server-side json db
- [ ] Allow download torrent files from magnet link
## Images with Tinfoil
#### Setup Connection
#### when find server (save and restart tinfoil app)
## Which Tech Stack ?
- `express` | Serve Dynamically shop(.json|.tfl) with updated content at every refresh and serve files statically
- `serve-index` | To serve a rich listing of files (in case only shop.json shop.tfl for tinfoil)
- `json5` | To parse custom shop_template.jsonc (you can define on it custom content like a welcome message !!!)No open issues yet, or sync has not completed.