Added a new option for redirecting to https

This commit is contained in:
Joe Uhren
2023-05-22 20:54:32 -06:00
parent 74e9b43403
commit cb6c95c472
3 changed files with 27 additions and 0 deletions
+4
View File
@@ -48,6 +48,10 @@ exports.webserver = {
// port: Port # to configure the express webserver to listen for https requests on
// NOTE: Be sure to configure firewalls to allow traffic through this port or the explorer website may not be accessible remotely
"port": 443,
// always_redirect: Force all explorer traffic to use https
// If set to true, all http web requests will automatically be forwarded to https
// If set to false, the webserver will allow both http and https traffic
"always_redirect": false,
// cert_file: The absolute or relative path to the tls certificate file. Typically this file will be generated from certbot (read more: https://certbot.eff.org)
"cert_file": "/etc/letsencrypt/live/domain-name-here/cert.pem",
// chain_file: The absolute or relative path to the tls chain file. Typically this file will be generated from certbot (read more: https://certbot.eff.org)