mirror of
https://github.com/pi-hole/web.git
synced 2026-10-11 10:54:49 +01:00
Login page: - use proper BS5 classes to set margins, padding and text styles; - use "card card-danger" consistently, for all error messages; - remove old class and change "show password" button style; - adjust the footer buttons. Warning count badge (top bar and sidebar): - Use the new HTML structure to show sidebar badge - Use BS5 classes for colors Dashboard: - Fix progress bars alignment Query Log: - Use the default padding for Advanced filtering card header - Apply BS5 styles to search fields (table footer) Domains and Lists (group management): - Add small gap between buttons DNS Settings: - Replace old custom classes with BS5 callout and border-* classes - Settings DNS interface card Webserver/API Settings: - Remove old commented code (leftover from v5) Local DNS Records Settings: - Remove double title from both cards Privacy Settings: - Fix "Privacy-related database settings" card layout Gravity page: - Simplify output element classes Search Lists: - Remove unnecessary input-group-btn class General changes: - Replace old .form-group class with BS5 .mb-3 Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
136 lines
9.1 KiB
Lua
136 lines
9.1 KiB
Lua
<? --[[
|
|
* Pi-hole: A black hole for Internet advertisements
|
|
* (c) 2023 Pi-hole, LLC (https://pi-hole.net)
|
|
* Network-wide ad blocking via your own hardware.
|
|
*
|
|
* This file is copyright under the latest version of the EUPL.
|
|
* Please see LICENSE file for your rights under this license.
|
|
--]]
|
|
|
|
mg.include('scripts/lua/header_authenticated.lp','r')
|
|
|
|
-- Page title and level selector
|
|
PageTitle = "Privacy Settings"
|
|
?>
|
|
<? mg.include('scripts/lua/settings_header.lp','r') ?>
|
|
<div class="app-content">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card card-warning card-outline">
|
|
<div class="card-header">
|
|
<h3 class="card-title" data-configkeys="dns.queryLogging">Query Logging</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<p>The currently configured logging file is <code id="files.log.dnsmasq"></code></p>
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="checkbox" id="dns.queryLogging" data-key="dns.queryLogging" title="log-queries">
|
|
<label class="form-check-label" for="dns.queryLogging"><strong>Log DNS queries and replies</strong></label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12 settings-level-expert d-none">
|
|
<div class="card card-warning card-outline">
|
|
<div class="card-header">
|
|
<h3 class="card-title" data-configkeys="database.DBimport database.maxDBdays database.network.expire">Privacy-related database settings</h3>
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-lg-12">
|
|
<p>Pi-hole's long-term database is stored at <code id="files.database"></code></p>
|
|
<div class="form-check">
|
|
<label class="d-inline" for="database.DBimport"><strong>Should FTL load queries from the database on (re)start?</strong>
|
|
<input class="form-check-input" type="checkbox" id="database.DBimport" data-key="database.DBimport" title="log-queries">
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-lg-4">
|
|
<input class="form-control" type="number" id="database.maxDBdays" data-key="database.maxDBdays" data-type="integer" value="" min="0" step="10">
|
|
|
|
</div>
|
|
<label class="col-lg-8" for="database.maxDBdays"><strong>Maximum number of days to keep queries in the database</strong></label>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<div class="col-lg-4">
|
|
<input class="form-control" type="number" id="database.network.expire" data-key="database.network.expire" data-type="integer" value="" min="0" step="10">
|
|
</div>
|
|
<label class="col-lg-8" for="database.network.expire"><strong>How long should IP addresses be kept in the network_addresses table [days]?</strong></label>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<p>IP addresses (and associated host names) older than the specified number of days are removed to avoid dead entries in the network overview table.</p>
|
|
</div>
|
|
</div>
|
|
|
|
</div><!-- /col-lg-12 -->
|
|
</div><!-- /row -->
|
|
</div><!-- /card-body -->
|
|
|
|
</div><!-- card -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6 settings-level-expert d-none">
|
|
<div class="card card-warning card-outline">
|
|
<div class="card-header">
|
|
<h3 class="card-title" data-configkeys="misc.privacylevel">Query Anonymization ("Privacy Level")</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<p>Specify if DNS queries should be anonymized, available options are:</p>
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="radio" id="misc.privacylevel-0" name="misc.privacylevel" data-key="misc.privacylevel" data-type="integer" value="0">
|
|
<label class="form-check-label" for="misc.privacylevel-0"><strong>Show everything and record everything</strong></label>
|
|
<p class="help-block">Gives maximum amount of statistics</p>
|
|
</div>
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="radio" id="misc.privacylevel-1" name="misc.privacylevel" data-key="misc.privacylevel" data-type="integer" value="1">
|
|
<label class="form-check-label" for="misc.privacylevel-1"><strong>Hide domains: Display and store all domains as <code>hidden</code></strong></label>
|
|
<p class="help-block">This disables the Top Permitted Domains and Top Blocked Domains tables on the dashboard</p>
|
|
</div>
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="radio" id="misc.privacylevel-2" name="misc.privacylevel" data-key="misc.privacylevel" data-type="integer" value="2">
|
|
<label class="form-check-label" for="misc.privacylevel-2"><strong> Hide domains and clients: Display and store all domains as <code>hidden</code> and all clients as <code>0.0.0.0</code> </strong></label>
|
|
<p class="help-block">This disables all tables on the dashboard</p>
|
|
</div>
|
|
<div class="form-check">
|
|
<input class="form-check-input" type="radio" id="misc.privacylevel-3" name="misc.privacylevel" data-key="misc.privacylevel" data-type="integer" value="3">
|
|
<label class="form-check-label" for="misc.privacylevel-3"><strong> Anonymous mode: This disables basically everything except the live anonymous statistics</strong></label>
|
|
<p class="help-block">No history is saved at all to the database, and nothing is shown in the query log. Also, there are no top item lists. Note that this also largely disabled regex capabilities.</p>
|
|
</div>
|
|
<p>The privacy level may be increased at any time without having to restart the DNS resolver. However, note that the DNS resolver needs to be restarted when lowering the privacy level. This restarting is automatically done when saving.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-12 save-button-container">
|
|
<button type="button" class="btn btn-primary save-button"><i class="fa-solid fa-fw fa-floppy-disk"></i> Save & Apply</button>
|
|
</div>
|
|
</div>
|
|
</div><!-- /.container-fluid -->
|
|
</div><!-- /.app-content -->
|
|
|
|
<script src="<?=pihole.fileversion('vendor/bootstrap5-toggle/bootstrap5-toggle.jquery.min.js')?>"></script>
|
|
<script src="<?=pihole.fileversion('scripts/js/settings-privacy.js')?>"></script>
|
|
<script src="<?=pihole.fileversion('scripts/js/settings.js')?>"></script>
|
|
|
|
<? mg.include('scripts/lua/footer.lp','r')?>
|