This commit is contained in:
syuilo
2017-11-21 03:40:09 +09:00
parent ff1a20d74a
commit 1436617aab
13 changed files with 234 additions and 14 deletions

View File

@@ -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();
}