mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 01:42:09 +00:00
cf38c73f53
* commands: Add TLS/HTTPS support to hugo server The "auto cert" handling in this PR is backed by mkcert (see link below). To get this up and running on a new PC, you can: ``` hugo server trust hugo server --tlsAuto ``` When `--tlsAuto` (or `--tlsCertFile` and `--tlsKeyFile`) is set and no `--baseURL` is provided as a flag, the server is started with TLS and `https` as the protocol. Note that you only need to run `hugo server trust` once per PC. If you already have the key and the cert file (e.g. by using mkcert directly), you can do: ``` hugo server --tlsCertFile mycert.pem --tlsKeyFile mykey.pem ``` See https://github.com/FiloSottile/mkcert Fixes #11064 |
||
---|---|---|
.. | ||
commands_errors.txt | ||
completion.txt | ||
config.txt | ||
convert.txt | ||
deploy.txt | ||
env.txt | ||
gen.txt | ||
hugo.txt | ||
hugo__configdir.txt | ||
hugo__errors.txt | ||
hugo__flags.txt | ||
hugo__noconfig.txt | ||
hugo__processingstats.txt | ||
hugo__publishdir_in_config.txt | ||
hugo__watch.txt | ||
hugo_configdev_env.txt | ||
hugo_configdev_environment.txt | ||
hugo_configprod.txt | ||
hugo_printpathwarnings.txt | ||
hugo_printunusedtemplates.txt | ||
import_jekyll.txt | ||
list.txt | ||
mod.txt | ||
mod__themesdir.txt | ||
mod_npm.txt | ||
mod_tidy.txt | ||
new.txt | ||
server.txt | ||
server__edit_config.txt | ||
server__edit_content.txt | ||
server__multihost.txt | ||
server_render_static_to_disk.txt | ||
server_render_to_memory.txt | ||
version.txt |