8000 feat(https): set HTTPS up in Settings and open its ports from the web app by adeelahmad · Pull Request #326 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(https): set HTTPS up in Settings and open its ports from the web app - #326

Merged
adeelahmad merged 1 commit into
mainfrom
claude/project-thread-lph29l
Oct 15, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/project-thread-lph29l

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: HTTPS (#289) was set up through PUT /api/v1/settings/https only, and opening ports 443/80 meant running the install line again by hand.

After: Settings › HTTPS sets it all up: domains, email, certificate authority, challenge, the DNS provider picked from a list with a field per credential, and More options. It shows whether a process has the ports, the certificates and when each runs out, and Caddy's last lines when a domain can't be verified. Open the HTTPS ports has the machine's upgrade agent rerun install.sh for the version running with LENS_HTTPS=1 (no backup, no version change); without an agent it shows the exact line to run.

How: updates.reconfigure() queues an upgrade run with an empty ref and an https flag; lens-upgrade.sh reads https= and passes LENS_HTTPS to install.sh, an empty ref meaning the version running. New endpoint POST /api/v1/settings/https/ports (audited), and the status gains agent, manual and reconfigure. make openapi regenerated; docs and CHANGELOG updated; backend and jest tests added.

Motivation and Context

Adeel asked for built-in SSL configured in the web app.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project.
  • I added or updated tests.
  • I have updated docs/ accordingly (docs/https.md).
  • CHANGELOG.md under Unreleased.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YB1b1hox6iFRdfWcpoKZwK


Generated by Claude Code

Copy link
Copy Markdown
Owner Author

"One-line install in a microsandbox" failed before Lens was involved: microsandbox's own installer got a 403 from GitHub while looking up its latest release ("Could not determine latest release version"), so msb never got installed. This PR doesn't touch that step, and there's no fix to port yet. Re-running it once.


Generated by Claude Code

… app

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YB1b1hox6iFRdfWcpoKZwK
@adeelahmad
adeelahmad force-pushed the claude/project-thread-lph29l branch from e299157 to f196bd5 Compare October 14, 2026 23:52
@adeelahmad
adeelahmad merged commit 379cc28 into main Oct 15, 2026
17 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-lph29l branch October 15, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0