-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
executable file
·20 lines (18 loc) · 1.11 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
include __DIR__ . '/CalypsDoH.php';
new CalypsDoH\Server(
allowedIdentities: [
/**
* These can be UUIDs or whatever url safe string you want to use to associate an allowed user with their logs
*/
],
passphrase: getenv('ENCRYPTION_PASSPHRASE_FOR_LOGS'),
dohServers: null, // Optional array of DoH Server endpoints that support GET DoH Queries via the ?dbs=... param.
alarming: null, // Optional URLs of blocklists that have a domain per line that you want the requests logged to an encrypted file.
annoying: null, // Optional URLs of blocklists that have a domain per line that you want blocked silently.
allowedDomains: [], // Optional array of any portion of a domain that you want to always allow.
blockedDomains: [], // Optional array of any portion of a domain that you want to always block.
remaps: [], // Optional array of domain ip pairs that you want to remap.
blockLevel: 3, // The DOMAIN_CODE level that requests should be blocked. See CalypsDoH.php Constants
enableStats: true, // Optional boolean to disable request stats from being logged.
);