Browse Source

Add COSTAR config

Daniel Supernault 6 years ago
parent
commit
916ffe268f
2 changed files with 25 additions and 0 deletions
  1. 4 0
      .env.example
  2. 21 0
      config/costar.php

+ 4 - 0
.env.example

@@ -65,3 +65,7 @@ HORIZON_DARKMODE=true
 #   php artisan optimize
 ACTIVITY_PUB=false
 REMOTE_FOLLOW=false
+
+CS_BLOCKED_DOMAINS='example.org,example.net,example.com'
+CS_CW_DOMAINS='example.org,example.net,example.com'
+CS_UNLISTED_DOMAINS='example.org,example.net,example.com'

+ 21 - 0
config/costar.php

@@ -0,0 +1,21 @@
+<?php
+
+/* 
+ * COSTAR - Confirm Object Sentiment Transform and Reduce
+ *
+ * v 0.1
+ *
+ */
+
+
+
+return [
+	'enabled' => env('PF_COSTAR_ENABLED', true),
+
+	'domain' => [
+		'block' => env('CS_BLOCKED_DOMAINS', null) ? explode(',', env('CS_BLOCKED_DOMAINS')) : null,
+		'cw' => env('CS_CW_DOMAINS', null) ? explode(',', env('CS_CW_DOMAINS')) : null,
+		'unlisted' => env('CS_UNLISTED_DOMAINS', null) ? explode(',', env('CS_UNLISTED_DOMAINS')) : null,
+	],
+
+];