hledger/hledger-web
Amarandus 76ffaca466 web: Add IPv6 and hostname support
This commit introduces IPv6 support (and thus closes #1145).
It also allows using local hostnames as a parameter for --host.
For this, multiple things needed to be changed:

 - checkWebOpts is dropped, as the supplied parameter is checked later
 by Network.Socket.getAddrInfo
 - defbaseurl needs to check if : is used in the host, as this indicates
 the usage of an IPv6 address. In this case, the host needs to be
 wrapped in [] for the base URL
 - To allow opening such a modified base URL, runHostPortFullUrl is used
 instead of runhostPortUrl, as it allows opening arbitrary URLs instead
 of a path prefixed with http://127.0.0.1

As checking the host for validity is postponed until the webserver tries
to start, an invalid hostname leads to an exception caused by
Network.Socket.getAddrInfo.
This is still fine, as hledger-web won't start in an undefined state, but
will terminate with a nonzero exit code.
2020-01-17 13:18:51 -08:00
..
app web: Add capabilities type, CLI options, and reading them from headers 2018-06-24 14:18:02 +02:00
config web: support adding new transactions via JSON PUT (#316) 2019-02-20 20:23:51 -08:00
deploy web: update for yesod 1.1.3 2012-11-15 17:48:48 +00:00
Hledger web: Add IPv6 and hostname support 2020-01-17 13:18:51 -08:00
static Improve font display on different OS 2020-01-05 08:04:46 -08:00
templates web: fix add form completions (fixes #1156) 2019-12-27 17:21:50 -08:00
test ;test: consistent singular naming for test suites and files 2019-11-29 06:35:29 -08:00
.eslintrc.js fix datepicker not closing, linting 2017-12-30 13:44:40 -05:00
.ghci web: drop cruft from .ghci 2016-04-18 15:28:54 -07:00
.version ;bump to dev version; bump man page dates 2020-01-05 09:04:50 -08:00
CHANGES.md ;doc: changelogs: update from 1.16.2, cleanups 2020-01-14 11:19:05 -08:00
defs.m4 ;bump to dev version; bump man page dates 2020-01-05 09:04:50 -08:00
hledger-web.1 ;doc: regen manuals again 2020-01-05 09:17:02 -08:00
hledger-web.cabal web: Add IPv6 and hostname support 2020-01-17 13:18:51 -08:00
hledger-web.info ;doc: regen manuals again 2020-01-05 09:17:02 -08:00
hledger-web.m4.md web: Add option --socket to use UNIX socket file 2020-01-12 16:15:37 -08:00
hledger-web.txt ;doc: regen manuals again 2020-01-05 09:17:02 -08:00
LICENSE packagegeddon.. split off web/chart/vty, move hledger to a subdir 2010-09-09 22:54:34 +00:00
package.yaml web: Add IPv6 and hostname support 2020-01-17 13:18:51 -08:00
README doc: ensure all five main packages have a README 2016-04-12 11:13:01 -07:00
Setup.hs Revert "remove Setup.hs files again, fixing a yesod devel warning" 2014-05-24 13:39:09 -07:00

A basic web UI for hledger data. Intended to be robust and somewhat useful.