Make HTTPS scheme the default case and fix paths to allow loading of the favicon

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-10-15 12:52:28 +02:00
parent 1cfe77f703
commit 7e1d55ee71
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
2 changed files with 18 additions and 18 deletions

View File

@ -10,14 +10,14 @@
<script type='text/javascript' src='external/rapidoc-min.js'></script>
<script type="text/javascript" src="pi-hole.js"></script>
<link href='index.css' rel='stylesheet'>
<link rel="apple-touch-icon" href="<?=pihole.webhome()?>/img/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="<?=pihole.webhome()?>/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="<?=pihole.webhome()?>/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="<?=pihole.webhome()?>/img/favicons/manifest.json">
<link rel="mask-icon" href="<?=pihole.webhome()?>/img/favicons/safari-pinned-tab.svg" color="#367fa9">
<link rel="shortcut icon" href="<?=pihole.webhome()?>/img/favicons/favicon.ico">
<link rel="apple-touch-icon" href="/admin/img/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="/admin/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="/admin/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="/admin/img/favicons/manifest.json">
<link rel="mask-icon" href="/admin/img/favicons/safari-pinned-tab.svg" color="#367fa9">
<link rel="shortcut icon" href="/admin/img/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#367fa9">
<meta name="msapplication-TileImage" content="<?=pihole.webhome()?>/img/favicons/mstile-150x150.png">
<meta name="msapplication-TileImage" content="/admin/img/favicons/mstile-150x150.png">
<meta name="theme-color" content="#367fa9">
</head>
<body>

View File

@ -15,17 +15,6 @@ info:
Most (but not all) endpoints require authentication.
API endpoints requiring authentication will fail with code `401 Unauthorized` when used outside a valid session.
servers:
- url: 'http://{url}:{port}/{path}'
variables:
url:
description: URL or address of your Pi-hole
default: pi.hole
port:
description: Port of your Pi-hole's API
default: "8080"
path:
description: Path where your Pi-hole's API is hosted
default: api
- url: 'https://{url}:{port}/{path}'
variables:
url:
@ -37,6 +26,17 @@ servers:
path:
description: Path where your Pi-hole's API is hosted
default: api
- url: 'http://{url}:{port}/{path}'
variables:
url:
description: URL or address of your Pi-hole
default: pi.hole
port:
description: Port of your Pi-hole's API
default: "80"
path:
description: Path where your Pi-hole's API is hosted
default: api
tags:
- name: "Authentication"