diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-21 03:40:09 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-21 03:40:09 +0900 |
| commit | 1436617aab030fa5b3760a3eeae37a1cdeeba2df (patch) | |
| tree | 5ac701a811de8be79e8e83643752818ee4b2cd1d /src/config.ts | |
| parent | v3165 (diff) | |
| download | sharkey-1436617aab030fa5b3760a3eeae37a1cdeeba2df.tar.gz sharkey-1436617aab030fa5b3760a3eeae37a1cdeeba2df.tar.bz2 sharkey-1436617aab030fa5b3760a3eeae37a1cdeeba2df.zip | |
wip
Diffstat (limited to 'src/config.ts')
| -rw-r--r-- | src/config.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/config.ts b/src/config.ts index d37d227a41..e8322d8333 100644 --- a/src/config.ts +++ b/src/config.ts @@ -75,6 +75,14 @@ type Source = { analysis?: { mecab_command?: string; }; + + /** + * Service Worker + */ + sw?: { + gcm_sender_id: string; + gcm_api_key: string; + }; }; /** @@ -109,7 +117,7 @@ export default function load() { const url = URL.parse(config.url); const head = url.host.split('.')[0]; - if (head != 'misskey') { + if (head != 'misskey' && head != 'localhost') { console.error(`プライマリドメインは、必ず「misskey」ドメインで始まっていなければなりません(現在の設定では「${head}」で始まっています)。例えば「https://misskey.xyz」「http://misskey.my.app.example.com」などが正しいプライマリURLです。`); process.exit(); } |