adguard-home/templates/AdGuardHome.yaml.j2
author Luke Hoersten <luke@hoersten.org>
Sat, 01 Aug 2020 11:10:30 -0500
changeset 126 1fe8b35714f6
parent 54 1ea4f1c7c675
child 134 484d4d6d24b0
permissions -rw-r--r--
Added auto upgrades to base.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
bind_host: 0.0.0.0
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
bind_port: 80
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
users:
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
- name: admin
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  password: $2a$10$Zs3krtMBhUxje0yHHIA/neADb56jsC/QlJHcjSxNVNtF72bBONJMW
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
http_proxy: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
language: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
rlimit_nofile: 0
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
debug_pprof: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
web_session_ttl: 720
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
dns:
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
  bind_host: 0.0.0.0
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
  port: 53
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
  statistics_interval: 1
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
  querylog_enabled: true
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
  querylog_interval: 90
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
  querylog_size_memory: 1000
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
  anonymize_client_ip: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
  protection_enabled: true
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
  blocking_mode: default
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
  blocking_ipv4: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
  blocking_ipv6: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
  blocked_response_ttl: 10
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
  parental_block_host: family-block.dns.adguard.com
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
  safebrowsing_block_host: standard-block.dns.adguard.com
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
  ratelimit: 20
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    27
  ratelimit_whitelist: []
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    28
  refuse_any: true
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    29
  upstream_dns:
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    30
  - https://dns10.quad9.net/dns-query
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    31
  bootstrap_dns:
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    32
  - 9.9.9.10
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    33
  - 149.112.112.10
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    34
  - 2620:fe::10
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    35
  - 2620:fe::fe:10
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    36
  all_servers: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    37
  fastest_addr: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    38
  allowed_clients: []
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    39
  disallowed_clients: []
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    40
  blocked_hosts: []
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    41
  cache_size: 4194304
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    42
  cache_ttl_min: 0
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    43
  cache_ttl_max: 0
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    44
  bogus_nxdomain: []
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    45
  aaaa_disabled: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    46
  enable_dnssec: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    47
  edns_client_subnet: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    48
  filtering_enabled: true
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    49
  filters_update_interval: 24
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    50
  parental_enabled: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    51
  safesearch_enabled: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    52
  safebrowsing_enabled: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    53
  safebrowsing_cache_size: 1048576
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    54
  safesearch_cache_size: 1048576
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    55
  parental_cache_size: 1048576
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    56
  cache_time: 30
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    57
  rewrites: []
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    58
  blocked_services: []
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    59
tls:
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    60
  enabled: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    61
  server_name: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    62
  force_https: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    63
  port_https: 443
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    64
  port_dns_over_tls: 853
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    65
  allow_unencrypted_doh: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    66
  strict_sni_check: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    67
  certificate_chain: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    68
  private_key: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    69
  certificate_path: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    70
  private_key_path: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    71
filters:
54
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    72
{% for filter in adguard_home_filters %}
50
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    73
- enabled: true
54
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    74
  url: {{filter.url}}
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    75
  name: {{filter.name}}
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    76
  id: {{filter.id}}
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    77
{% else %}  []
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    78
{% endfor %}
50
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    79
whitelist_filters: []
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    80
user_rules: []
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    81
dhcp:
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    82
  enabled: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    83
  interface_name: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    84
  gateway_ip: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    85
  subnet_mask: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    86
  range_start: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    87
  range_end: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    88
  lease_duration: 86400
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    89
  icmp_timeout_msec: 1000
54
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    90
clients:
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    91
{% for client in adguard_home_clients %}
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    92
- name: {{client.name}}
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    93
  tags: []
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    94
  ids:
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    95
  - {{client.ip}}
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    96
  use_global_settings: {{not client.bypass}}
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    97
  filtering_enabled: false
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    98
  parental_enabled: false
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
    99
  safesearch_enabled: false
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
   100
  safebrowsing_enabled: false
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
   101
  use_global_blocked_services: {{not client.bypass}}
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
   102
  blocked_services: []
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
   103
  upstreams: []
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
   104
{% else %}  []
1ea4f1c7c675 Updated client templating in adguard.
Luke Hoersten <luke@hoersten.org>
parents: 50
diff changeset
   105
{% endfor %}
50
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   106
log_file: ""
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   107
verbose: false
15edca738a31 Added AdGuard Home role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
   108
schema_version: 6