bfe icon indicating copy to clipboard operation
bfe copied to clipboard

Add support to disable https

Open mileszhang2016 opened this issue 3 years ago • 1 comments

Discussed in https://github.com/bfenetworks/bfe/discussions/927

Originally posted by curiosport January 2, 2022 I know that using http instead of https is absurd I just want to know if it is possible to omit the TLS certificate during development.

mileszhang2016 avatar Jan 28 '22 02:01 mileszhang2016

Solution proposal:

  1. add item HttpsEnabled in conf/bfe.conf and the same in ConfigBasic struct bfe_config/conf_basic.go, default true
  2. when HttpsEnabled is false, no check in (cfg *ConfigHttpsBasic) Check(confRoot string)
  3. HttpsEnabled is false, no initial in (srv *BfeServer) InitHttps()
  4. HttpsEnabled is false, no startup for https connection serving

others to check, like bfe_modules, built-in monitor points etc.

kwanhur avatar Feb 20 '22 07:02 kwanhur