dathttpd icon indicating copy to clipboard operation
dathttpd copied to clipboard

Running only as a Dat server

Open AlbertoElias opened this issue 8 years ago • 3 comments

Is it possible to use dathttpd only as a Dat server, that would make it work for my custom domain under the Dat protocol, but leaves handling http/https connections to a custom server? Thank you!

AlbertoElias avatar Jan 20 '18 17:01 AlbertoElias

Hey @AlbertoElias

You can disable the https hosting with the datOnly config. It's not currently possible to stop the http from starting entirely (PRs accepted) but if you also set letsencrypt to false, then you can just set the ports.http to something random and the server would never be hit.

The dathttpd hosting on https normally handles DNS shortnames for you. If you disable the https hosting but still want shortnames, you'll need to manually setup the .well-known file. See https://github.com/beakerbrowser/beaker/wiki/Authenticated-Dat-URLs-and-HTTPS-to-Dat-Discovery#proposal.

pfrazee avatar Jan 21 '18 17:01 pfrazee

Thanks a lot for the detailed explanation

For that use case, would dathttpd be worth it? Or just running a service that runs Dat and using a .well-known file be a better option?

AlbertoElias avatar Jan 21 '18 17:01 AlbertoElias

Yeah it's probably still a good choice but it's up to you. It'll work as well as any alternative.

pfrazee avatar Jan 21 '18 18:01 pfrazee