From 9c6284a08a24480ddc0d6cd24ebdb61b3fd70484 Mon Sep 17 00:00:00 2001 From: Vikas Singhal Date: Fri, 4 Sep 2026 15:58:17 +0530 Subject: [PATCH] docs: add a self-hosted server option under Self-host --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 4f9f8f6..7a17a93 100644 --- a/README.md +++ b/README.md @@ -174,6 +174,10 @@ python3 -m http.server 8000 For a real server use nginx / Caddy / Apache with a TLS certificate. Plain HTTP (non-localhost) or opening `index.html` via `file://` will **not** compute codes — Web Crypto refuses to run outside a secure context. +If you want that real server without setting one up, this deploys the repo to a Linux box with nginx and HTTPS already in place: + +[![Deploy on InstaPods](https://instapods.com/deploy-button.svg)](https://app.instapods.com/dashboard/pods/create?repo=https://github.com/zeropl/2FA&ref=gh-easy2fa) + > **Updating a deployed copy:** nothing to do. You push → the platform redeploys → visitors' service workers fetch the new version in the background, and their next refresh runs it. (The `CACHE` name in [`sw.js`](sw.js) now only matters when you want to wipe the old cache pool entirely.) ## How it works