diff --git a/config/default.json5 b/config/default.json5 index e0c6b9b..fd123c1 100644 --- a/config/default.json5 +++ b/config/default.json5 @@ -1,7 +1,7 @@ { app: { - name: 'Example App', - contact_email: 'contact@example.net' + name: 'ily.li', + contact_email: 'contact@ily.li', }, log_level: "DEV", db_log_level: "ERROR", @@ -13,18 +13,18 @@ host: "localhost", user: "root", password: "", - database: "example_app", - create_database_automatically: false + database: "ilyli", + create_database_automatically: false, }, redis: { host: "127.0.0.1", port: 6379, - prefix: 'example_app' + prefix: 'ilyli', }, session: { cookie: { - secure: false - } + secure: false, + }, }, mail: { host: "127.0.0.1", @@ -33,11 +33,22 @@ username: "", password: "", allow_invalid_tls: true, - from: 'contact@example.net', - from_name: 'Example App', + from: 'contact@ily.li', + from_name: 'ily.li', }, view: { - cache: false + cache: false, }, + newlyGeneratedSlugSize: 3, + default_file_ttl: 30, // 30 seconds + max_upload_size: 16, // MB + max_hotlink_size: 1, // MB approval_mode: false, + domain: 'localhost', + allowed_url_domains: [ + 'localhost:4893', + '127.0.0.1:4893', + ], + default_url_domain_for_files: 0, + default_url_domain_for_urls: 1, } diff --git a/config/default.ts b/config/default.ts deleted file mode 100644 index 7b327c0..0000000 --- a/config/default.ts +++ /dev/null @@ -1,42 +0,0 @@ -export default Object.assign(require("wms-core/config/default").default, { - app: { - name: 'ily.li', - contact_email: 'contact@ily.li' - }, - domain: 'localhost', - base_url: 'http://localhost:4893', - public_websocket_url: 'ws://localhost:4893', - port: 4893, - mysql: { - connectionLimit: 10, - host: "localhost", - user: "root", - password: "", - database: "ilyli", - create_database_automatically: false - }, - magic_link: { - validity_period: 20 - }, - newlyGeneratedSlugSize: 3, - default_file_ttl: 30, // 30 seconds - max_upload_size: 16, // MB - max_hotlink_size: 1, // MB - approval_mode: false, - mail: { - host: "127.0.0.1", - port: "1025", - secure: false, - username: "", - password: "", - allow_invalid_tls: true, - from: 'contact@ily.li', - from_name: 'ily.li', - }, - allowed_url_domains: [ - 'localhost:4893', - '127.0.0.1:4893', - ], - default_url_domain_for_files: 0, - default_url_domain_for_urls: 1, -}); diff --git a/config/production.json5 b/config/production.json5 index 6993e0e..f72558c 100644 --- a/config/production.json5 +++ b/config/production.json5 @@ -1,15 +1,27 @@ { log_level: "DEBUG", db_log_level: "ERROR", - public_url: "https://watch-my.stream", - public_websocket_url: "wss://watch-my.stream", + public_url: 'https://ily.li', + public_websocket_url: 'wss://ily.li', session: { cookie: { secure: true - } + }, }, mail: { secure: true, allow_invalid_tls: false - } + }, + newlyGeneratedSlugSize: 5, + default_file_ttl: 2592000, // 30 days + max_upload_size: 8192, // MB + max_hotlink_size: 128, // MB + approval_mode: true, + domain: 'ily.li', + allowed_url_domains: [ + 'ily.li', + 'gris.li', + ], + default_url_domain_for_files: 0, + default_url_domain_for_urls: 1, } diff --git a/config/production.ts b/config/production.ts deleted file mode 100644 index 5ed73c8..0000000 --- a/config/production.ts +++ /dev/null @@ -1,30 +0,0 @@ -export default Object.assign(require("wms-core/config/production").default, { - domain: 'ily.li', - base_url: 'https://ily.li', - public_websocket_url: 'wss://ily.li', - mysql: { - connectionLimit: 10, - host: "localhost", - user: "root", - password: "", - database: "ilyli", - }, - magic_link: { - validity_period: 900 - }, - newlyGeneratedSlugSize: 5, - default_file_ttl: 30 * 24 * 3600, // 30 days - max_upload_size: 8192, // MB - max_hotlink_size: 128, // MB - approval_mode: true, - mail: { - secure: true, - allow_invalid_tls: false - }, - allowed_url_domains: [ - 'ily.li', - 'gris.li', - ], - default_url_domain_for_files: 0, - default_url_domain_for_urls: 1, -}); diff --git a/config/test.json5 b/config/test.json5 index cda9d47..750b4bb 100644 --- a/config/test.json5 +++ b/config/test.json5 @@ -3,7 +3,7 @@ host: "localhost", user: "root", password: "", - database: "swaf_test", - create_database_automatically: true - } + database: "ilyli_test", + create_database_automatically: true, + }, } diff --git a/config/test.ts b/config/test.ts deleted file mode 100644 index 90a96a7..0000000 --- a/config/test.ts +++ /dev/null @@ -1,9 +0,0 @@ -export default Object.assign(require("wms-core/config/test").default, { - mysql: { - database: "ilyli_test", - create_database_automatically: true - }, - magic_link: { - validity_period: 2 - }, -}); \ No newline at end of file