diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-07-08 20:27:54 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-07-08 20:27:54 +0200 |
commit | e25119f6a4da6605ed555bd2b7a3293c252aca21 (patch) | |
tree | d473b1f064b05bb6961b41f5cde4aa7994bcf5ef /app | |
parent | a087209121285d924456ecdd850e84b33f80726f (diff) | |
download | Cana-e25119f6a4da6605ed555bd2b7a3293c252aca21.tar.gz Cana-e25119f6a4da6605ed555bd2b7a3293c252aca21.tar.bz2 Cana-e25119f6a4da6605ed555bd2b7a3293c252aca21.zip |
Add basic support for virtual hosts
We can technically do vhosts with our current infrastructure of route
matching, but they should get some better support. Otherwise, we cannot
use things like SNI (server name indication) to send different
credentials depending on the virtual host.
The way it works now is basically that the server keeps a list of
installed vhosts, each with a domain that it matches and a loaded
certificate. Route matching in a vhost is still done the same old way,
but only routes for the matching vhost are considered in the first
place.
The API for runGeminiServer does not change, so the proper, vhost-using
API, will need a different function and API.
Diffstat (limited to 'app')
0 files changed, 0 insertions, 0 deletions