Por
Dekuwa
Instala tus paquetes de Nintendo Switch (NSP, NSZ, XCI, etc.) con Tinfoil desde tu propio servidor.
Todos los archivos servidos deben tener "[titleid]" en el nombre del archivo para que Tinfoil los reconozca y aparezcan en "Nuevos juegos", "Nuevo DLC" y "Nuevas actualizaciones".
Requisitos
Para hacer funcionar el servidor necesitarás instalar el ASP.NET Core Runtime 5.X.X o más.
Formato de archivo de configuración TinfoilWebServer.config.json:
{
"ServedDirectories": ["dir1", "dir2", ...], // ex: ["C:\\SomeDir\\DirWithPackages", "D:\\AnotherDir", "."] !!! Don't forget to escape backslashes with another one !!!
"StripDirectoryNames" : <boolean>, // «true» to remove directories names in URLs of served files, «false» otherwise.
"ServeEmptyDirectories" : <boolean>, // «true» to serve empty directories, «false» otherwise (has no effect when "StripDirectoryNames" is «true»).
"AllowedExt": ["ext1", "ext2", ...], // List of file extensions to serve, ex: [ "nsp", "nsz", "xci" ].
"MessageOfTheDay": "SomeText", // The welcome message displayed when Tinfoil successfully contacts the server.
"ExtraRepositories": ["SomeRepo1", ...], // A set of extra repositories sent to Tinfoil for scanning (see https://blawar.github.io/tinfoil/custom_index/ for more information).
"CacheExpiration": {
"Enable": boolean // «true» to enable cache expiration, «false» otherwise.
"ExpirationDelay" : "<duration>", // Index cache expiration time, format is «[d'.']hh':'mm':'ss['.'fffffff]», ex: "01:30:15" for 1h30m15s.
},
"Kestrel": { // HTTP server configuration see «https://docs.microsoft.com/fr-fr/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-5.0#configureiconfiguration» for more information.
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:80"
}
}
},
"Logging": {
"LogLevel": {
"Default": "Information" // See «https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-5.0» for more information.
}
}
"Authentication": {
"Enabled": <boolean> // «true» to enable authentication, «false» otherwise.
"Users": [ // List of allowed users.
{
"Name": "SomeUserName",
"Pwd": "SomePassword",
"MessageOfTheDay" : "Some Text" // Custom message for the user
},
...
]
}
}
Configuraciones por defecto
Si se omite la configuración de "Kestrel", el servidor escucha http://localhost:5000/ y https://localhost:5001.
Si se omite "ServedDirectories", se utiliza el directorio actual.
Si se omite "AllowedExt", se utilizan las siguientes extensiones ["xci", "nsz", "nsp"].
Tinfoil Web Server es una aplicación creada por Myster-Tee.