diff --git a/.env.example b/.env.example index 048d7e3eb..ab22f3aaf 100644 --- a/.env.example +++ b/.env.example @@ -82,3 +82,14 @@ RENAME_MUSIC_MEDIAINFO= CACHE_EXPIRY_SHORT= CACHE_EXPIRY_MEDIUM= CACHE_EXPIRY_LONG= + +SSL_CAFILE= +SSL_CAPATH= +SSL_VERIFY_PEER=false +SSL_VERIFY_HOST=false +SSL_ALLOW_SELF_SIGNED=true + +SCRAPE_IRC_USERNAME= +SCRAPE_IRC_PORT= +SCRAPE_IRC_TLS= +SCRAPE_IRC_PASSWORD= diff --git a/Changelog b/Changelog index 38dd3b08b..1d7459a5c 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-03-05 DariusIII + * Chg: Update ssl and irc settings handling * Chg: Update config settings handling * Chg: Remove last of the python requirements 2018-03-04 DariusIII diff --git a/config/irc_settings.php b/config/irc_settings.php index 0121b0ea7..e27bcf8c4 100644 --- a/config/irc_settings.php +++ b/config/irc_settings.php @@ -1,6 +1,6 @@ use a corresponding port (6697 or 7001 for example)=>and set SCRAPE_IRC_TLS to true. **********************************************************************************************************************/ -'scrape_irc_port' => '6667', +'scrape_irc_port' => env('SCRAPE_IRC_PORT', 6667), /*********************************************************************************************************************** * If you want to use SSL/TLS encryption on the IRC server=>set this to true. * @note Make sure you use a valid SSL/TLS port in SCRAPE_IRC_PORT. **********************************************************************************************************************/ -'scrape_irc_tls' => false, +'scrape_irc_tls' => env('SCRAPE_IRC_TLS', false), /*********************************************************************************************************************** * This is the nick name visible in IRC channels. @@ -50,7 +50,7 @@ return [ * @note Put your password between quotes: 'mypassword' * @note If you are using ZNC and having issues=>try 'username:password' or 'username/network:' **********************************************************************************************************************/ -'scrape_irc_password' => false, +'scrape_irc_password' => env('SCRAPE_IRC_PASSWORD', false), /*********************************************************************************************************************** * This is an optional field you can use for ignoring categories. diff --git a/config/nntmux_ssl.php b/config/nntmux_ssl.php index 62f89b9de..ec4f3bee4 100644 --- a/config/nntmux_ssl.php +++ b/config/nntmux_ssl.php @@ -1,9 +1,9 @@ '', - 'ssl_capath' => '', - 'ssl_verify_peer' => false, - 'ssl_verify_host' => false, - 'ssl_allow_self_signed' => true, + 'ssl_cafile' => env('SSL_CAFILE', ''), + 'ssl_capath' => env('SSL_CAPATH', ''), + 'ssl_verify_peer' => env('SSL_VERIFY_PEER', false), + 'ssl_verify_host' => env('SSL_VERIFY_HOST', false), + 'ssl_allow_self_signed' => env('SSL_ALLOW_SELF_SIGNED', true), ];