mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
Clean up
This commit is contained in:
parent
b094b49e54
commit
87c1851602
3 changed files with 4 additions and 18 deletions
|
@ -108,13 +108,5 @@ autoAdmin: true
|
|||
# port: 9200
|
||||
# pass: null
|
||||
|
||||
# ServiceWorker
|
||||
#sw:
|
||||
# # Public key of VAPID
|
||||
# public_key: example-sw-public-key
|
||||
#
|
||||
# # Private key of VAPID
|
||||
# private_key: example-sw-private-key
|
||||
|
||||
# Clustering
|
||||
#clusterLimit: 1
|
||||
|
|
|
@ -43,17 +43,11 @@ export type Source = {
|
|||
* Service Worker
|
||||
*/
|
||||
sw?: {
|
||||
public_key: string;
|
||||
private_key: string;
|
||||
publicKey: string;
|
||||
privateKey: string;
|
||||
};
|
||||
|
||||
clusterLimit?: number;
|
||||
|
||||
user_recommendation?: {
|
||||
external: boolean;
|
||||
engine: string;
|
||||
timeout: number;
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,8 +7,8 @@ if (config.sw) {
|
|||
// アプリケーションの連絡先と、サーバーサイドの鍵ペアの情報を登録
|
||||
push.setVapidDetails(
|
||||
config.url,
|
||||
config.sw.public_key,
|
||||
config.sw.private_key);
|
||||
config.sw.publicKey,
|
||||
config.sw.privateKey);
|
||||
}
|
||||
|
||||
export default async function(userId: mongo.ObjectID | string, type: string, body?: any) {
|
||||
|
|
Loading…
Reference in a new issue