hugo/testscripts/commands
Bjørn Erik Pedersen cf38c73f53
commands: Add TLS/HTTPS support to hugo server
* 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
2023-06-05 09:53:53 +02:00
..
commands_errors.txt
completion.txt
config.txt
convert.txt
deploy.txt
env.txt
gen.txt commands: Add TLS/HTTPS support to hugo server 2023-06-05 09:53:53 +02:00
hugo.txt
hugo__configdir.txt commands: Fail the build when no config file or config dir 2023-05-27 16:56:54 +02:00
hugo__errors.txt
hugo__flags.txt commands: Fail the build when no config file or config dir 2023-05-27 16:56:54 +02:00
hugo__noconfig.txt Don't create the public folder unless needed 2023-05-28 12:55:44 +02:00
hugo__processingstats.txt Fix Processed images count regression for multiple languages 2023-05-28 12:55:44 +02:00
hugo__publishdir_in_config.txt
hugo__watch.txt Don't inject livereload script on hugo -w 2023-06-02 09:04:00 +02:00
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 commands: Reinstate some of the removed build flags (e.g. --theme) to new and mod 2023-05-28 12:55:44 +02:00
mod_npm.txt
mod_tidy.txt
new.txt commands: Reinstate some of the removed build flags (e.g. --theme) to new and mod 2023-05-28 12:55:44 +02:00
server.txt
server__edit_config.txt
server__edit_content.txt
server__multihost.txt
server_render_static_to_disk.txt Fix --renderStaticToDisk regression 2023-05-27 16:56:54 +02:00
server_render_to_memory.txt
version.txt