shrub/pkg/arvo/sys
Tinnus Napbus 27349c51ab eyre: add auto-https redirects
if a cert is configured and a secure port is live it will set the
redirect flag in http-config.state.

When it gets a ++request it will return a 301 redirect to
https://[host]/[path] if:

  1. not already secure
  2. redirect flag set
  3. secure port live
  4. is not requesting /.well-known/acme-challenge/...
  5. the host is in domains.state

It will not happen if forwarded-secured, localhost, local loopback, ip
addresses or domains not in domains.state.

in ++load it checks the secure port is live and a cert is set and
enables it if so (for people who already use in-urbit letencrypt)

%rule %cert tasks also toggle it (only turning it on if secure port
live)

%live tasks also toggle it (only turning it on if cert set)

Have tested with a couple of ships and seems to work fine.

This is useful in combination with pyry's auto arvo.network dns config
system - can finally get rid of reverse proxies entirely.
2022-09-04 02:58:09 +12:00
..
vane eyre: add auto-https redirects 2022-09-04 02:58:09 +12:00
arvo.hoon arvo: refactor |mass output, make vane /whey peek optional 2021-12-16 12:21:21 -05:00
hoon.hoon Merge pull request #5227 from urbit/m/righteous-paths 2021-10-14 23:12:29 +02:00
lull.hoon jael: give private key to subscribers on keys diff 2022-01-08 09:48:28 +01:00
zuse.hoon zuse: add missing assertions 2022-02-09 14:14:12 -06:00