mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
TWA/assetlinks support
This commit is contained in:
parent
a6437a79cd
commit
4b2f9bd631
@ -145,6 +145,12 @@ id: 'aid'
|
|||||||
# '127.0.0.1/32'
|
# '127.0.0.1/32'
|
||||||
#]
|
#]
|
||||||
|
|
||||||
|
# TWA
|
||||||
|
#twa:
|
||||||
|
# nameSpace: android_app
|
||||||
|
# packageName: tld.domain.twa
|
||||||
|
# sha256CertFingerprints: ['AB:CD:EF']
|
||||||
|
|
||||||
# Upload or download file size limits (bytes)
|
# Upload or download file size limits (bytes)
|
||||||
#maxFileSize: 262144000
|
#maxFileSize: 262144000
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "13.0.8-rc4",
|
"version": "13.0.9-rc",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -64,6 +64,12 @@ export type Source = {
|
|||||||
mediaProxy?: string;
|
mediaProxy?: string;
|
||||||
proxyRemoteFiles?: boolean;
|
proxyRemoteFiles?: boolean;
|
||||||
|
|
||||||
|
twa: {
|
||||||
|
nameSpace?: string;
|
||||||
|
packageName?: string;
|
||||||
|
sha256CertFingerprints?: string[];
|
||||||
|
};
|
||||||
|
|
||||||
// Managed hosting stuff
|
// Managed hosting stuff
|
||||||
maxUserSignups?: number;
|
maxUserSignups?: number;
|
||||||
isManagedHosting?: boolean;
|
isManagedHosting?: boolean;
|
||||||
|
@ -74,6 +74,22 @@ router.get("/.well-known/host-meta.json", async (ctx) => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (config.twa.nameSpace != null) {
|
||||||
|
router.get("/.well-known/assetlinks.json", async (ctx) => {
|
||||||
|
ctx.set("Content-Type", "application/json");
|
||||||
|
ctx.body = [
|
||||||
|
{
|
||||||
|
relation: ["delegate_permission/common.handle_all_urls"],
|
||||||
|
target: {
|
||||||
|
namespace: config.twa.nameSpace,
|
||||||
|
package_name: config.twa.packageName,
|
||||||
|
sha256_cert_fingerprints: config.twa.sha256CertFingerprints,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
router.get("/.well-known/nodeinfo", async (ctx) => {
|
router.get("/.well-known/nodeinfo", async (ctx) => {
|
||||||
ctx.body = { links };
|
ctx.body = { links };
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user