urbit/pkg
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
..
arvo eyre: add auto-https redirects 2022-09-04 02:58:09 +12:00
base-dev Merge pull request #5532 from urbit/azimuth/jael-fix 2022-01-12 12:47:21 +01:00
bitcoin various: bump pkg kelvins ahead of coming update 2021-11-10 14:51:26 +01:00
btc-wallet Merge pull request #5355 from finned-palmer/bugfix/cleanup-provider-modal-text 2021-10-25 10:47:12 -05:00
docker-image docker: update documentation 2021-04-25 12:02:56 -04:00
ent libent: use BCryptGenRandom on Windows 2021-03-27 20:15:56 +00:00
garden docket: add comment 2022-04-28 10:10:14 +02:00
garden-dev hark-store: fix ship parsing 2022-03-28 10:13:52 -06:00
grid Merge branch 'master' into next/landscape 2022-04-20 10:16:56 -05:00
herb Revert "Revert "Merge naive/aggregator into poprox/naive-tests"" 2021-08-19 16:09:28 -07:00
hs build: remove haskell related nix code and haskell.nix dependency 2021-12-08 10:06:42 +01:00
interface Merge remote-tracking branch 'origin/next/groups' 2022-04-13 16:04:55 -05:00
landscape Merge remote-tracking branch 'origin/next/groups' 2022-04-13 16:04:55 -05:00
npm Merge pull request #5736 from urbit/po/fix-for-iswriters-func 2022-04-27 14:45:06 -05:00
urbit vere: bump version to 1.8 2021-11-19 18:41:32 -08:00
urcrypt Merge branches 'jb/rnv-restage' and 'jb/rnv-fixes', remote-tracking branches 'frodwith/keccak' and 'botter-nidnul/release/next-vere' into jb/rnv-merge 2021-09-24 18:05:37 -04:00
webterm webterm: v1.0.1 2022-01-27 00:29:24 +01:00
symbolic-merge.sh pkg/symbolic-merge.sh from @Fang- 2021-08-30 20:19:16 +03:00