From faab9e489463b4c13ecf6239ccc1e639541fa1bf Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Tue, 27 Apr 2021 15:01:07 +0200 Subject: [PATCH] Rollback config files indent change --- config/default.json5 | 120 ++++++++++++++++++++-------------------- config/production.json5 | 48 ++++++++-------- config/test.json5 | 32 +++++------ 3 files changed, 100 insertions(+), 100 deletions(-) diff --git a/config/default.json5 b/config/default.json5 index 20ee8f0..e3b1975 100644 --- a/config/default.json5 +++ b/config/default.json5 @@ -1,62 +1,62 @@ { - app: { - name: 'Example App', - contact_email: 'contact@example.net', - display_email_warning: true, - }, - log: { - level: "DEBUG", - verbose: true, - db_level: "ERROR", - }, - public_url: "http://localhost:4899", - public_websocket_url: "ws://localhost:4899", - listen_addr: '127.0.0.1', - port: 4899, - gitlab_webhook_token: 'default', - mysql: { - connectionLimit: 10, - host: "localhost", - user: "root", - password: "", - database: "swaf", - create_database_automatically: false, - }, - redis: { - host: "127.0.0.1", - port: 6379, - prefix: 'swaf', - }, - session: { - secret: 'default', - cookie: { - secure: false, - // 1 year - maxAge: 31557600000, - }, - }, - mail: { - host: "127.0.0.1", - port: "1025", - secure: false, - username: "", - password: "", - allow_invalid_tls: true, - from: 'contact@example.net', - from_name: 'Example App', - }, - view: { - cache: false, - enable_asset_cache: false, - dev: true, - }, - magic_link: { - validity_period: 20, - }, - auth: { - // Registered accounts need to be approved by an administrator - approval_mode: false, - // 30 days - name_change_wait_period: 2592000000, - }, + app: { + name: 'Example App', + contact_email: 'contact@example.net', + display_email_warning: true, + }, + log: { + level: "DEBUG", + verbose: true, + db_level: "ERROR", + }, + public_url: "http://localhost:4899", + public_websocket_url: "ws://localhost:4899", + listen_addr: '127.0.0.1', + port: 4899, + gitlab_webhook_token: 'default', + mysql: { + connectionLimit: 10, + host: "localhost", + user: "root", + password: "", + database: "swaf", + create_database_automatically: false, + }, + redis: { + host: "127.0.0.1", + port: 6379, + prefix: 'swaf', + }, + session: { + secret: 'default', + cookie: { + secure: false, + // 1 year + maxAge: 31557600000, + }, + }, + mail: { + host: "127.0.0.1", + port: "1025", + secure: false, + username: "", + password: "", + allow_invalid_tls: true, + from: 'contact@example.net', + from_name: 'Example App', + }, + view: { + cache: false, + enable_asset_cache: false, + dev: true, + }, + magic_link: { + validity_period: 20, + }, + auth: { + // Registered accounts need to be approved by an administrator + approval_mode: false, + // 30 days + name_change_wait_period: 2592000000, + }, } diff --git a/config/production.json5 b/config/production.json5 index fcabc23..b14c43d 100644 --- a/config/production.json5 +++ b/config/production.json5 @@ -1,26 +1,26 @@ { - log: { - level: "DEV", - verbose: false, - db_level: "ERROR", - }, - public_url: "https://swaf.example", - public_websocket_url: "wss://swaf.example", - session: { - cookie: { - secure: true, - }, - }, - mail: { - secure: true, - allow_invalid_tls: false, - }, - magic_link: { - validity_period: 900, - }, - view: { - cache: true, - enable_asset_cache: true, - dev: false, - }, + log: { + level: "DEV", + verbose: false, + db_level: "ERROR", + }, + public_url: "https://swaf.example", + public_websocket_url: "wss://swaf.example", + session: { + cookie: { + secure: true, + }, + }, + mail: { + secure: true, + allow_invalid_tls: false, + }, + magic_link: { + validity_period: 900, + }, + view: { + cache: true, + enable_asset_cache: true, + dev: false, + }, } diff --git a/config/test.json5 b/config/test.json5 index 48bbfc3..62032b0 100644 --- a/config/test.json5 +++ b/config/test.json5 @@ -1,18 +1,18 @@ { - mysql: { - host: "localhost", - user: "root", - password: "", - database: "swaf_test", - create_database_automatically: true, - }, - session: { - cookie: { - // 1s - maxAge: 1000, - }, - }, - auth: { - approval_mode: true, - }, + mysql: { + host: "localhost", + user: "root", + password: "", + database: "swaf_test", + create_database_automatically: true, + }, + session: { + cookie: { + // 1s + maxAge: 1000, + }, + }, + auth: { + approval_mode: true, + }, }