1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 02:31:35 +00:00

Optional no ssl flag using x-insecure header

This commit is contained in:
Cadence Ember 2023-01-15 22:06:31 +13:00
parent 8d292cc200
commit 3d5927ab28
9 changed files with 22 additions and 19 deletions

View file

@ -26,7 +26,10 @@ html
if showNav
nav.main-nav
.links
a(href="/").link.home CloudTube
if req && req.headers && "x-insecure" in req.headers
a(href="/").link.home CloudTube - Insecure
else
a(href="/").link.home CloudTube
a(href="/subscriptions" title="Subscriptions").link.icon-link
!= icons.get("subscriptions")
a(href="/settings" title="Settings").link.icon-link