Skip to content

Conversation

@rid-dim
Copy link
Contributor

@rid-dim rid-dim commented May 23, 2025

okay - i tested it locally and with this modification you can start dweb

dweb serve --https

if you want to run it via https (otherwise you just omit the flag)

dweb open ...

just as we're used to

i'm not perfectly happy with this implementation tbh because of 2 reasons:

  • first we start the server with https/http (so we should know what we did)
  • on dweb open we detect if it's https or http (based on the used port)

...feels just a bit wrong ...

with self signed certificate it's super annoying to accept it every time i open the app (2x - once for the dweb server and once for the app server)

but on the upside it works and is okayish on code-clean-ness i'd hope ...?


only other idea that doesn't bloat the codebase i have is to write a state file ...

@happybeing happybeing force-pushed the main branch 13 times, most recently from 677f4db to ee6a6e1 Compare September 24, 2025 10:11
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.

1 participant