When BIND variable is set, baseURL/.HOST should not be set to localhost
by default.
Reported by: imp
Differential D30656
hugo server: Fix bind and hostname parameters dbaio on Jun 5 2021, 8:29 PM. Authored by Tags None Referenced Files
Subscribers
Details
When BIND variable is set, baseURL/.HOST should not be set to localhost Reported by: imp
Diff Detail
Event TimelineComment Actions I imagine people want to bind it to a specific ip/interface and access through a hostname which is different than the ip address. -b, --baseURL="" hostname (and path) to the root, e.g. http://spf13.com/ --bind="127.0.0.1" interface to which the server will bind adding @mat, could you please review this as well? Comment Actions Sorry, to clear, I understand why hugo has them, but I don't really understand why we need them in a development-class Makefile. If we do, then they should be documented so that a human can understand them in the Makefile. Comment Actions I understand, both parameters will be used only in specific scenarios for a few users. HUGO_ARGS need to be documented as well, let's wait for this review and submit this update together. Comment Actions I asked for this change because I'm constantly running hugo on my beefy server and need to bind it to it's IP address. I don't know when/if BIND and HOSTNAME would ever be different, thought, or when you'd use hostname w/o bind, but my depth of knowledge here isn't super deep. |