~ritho/rweb

e504e445825df0109968c7f5424ee7e4403edcc3 — Ritho 2 months ago 2d34e32
Configure the redirection from http to https.

Signed-off-by: Ritho <palvarez@ritho.net>
1 files changed, 4 insertions(+), 0 deletions(-)

M internal/server/server.go
M internal/server/server.go => internal/server/server.go +4 -0
@@ 85,6 85,10 @@ func (s *server) Start() error {
	glog.Infof("Starting the server at %s:%d...", s.cfg.Server.Domain,
		s.cfg.Server.Port)
	if s.cfg.Server.TLS {
		if err := s.srv.Start(s.cfg.Server.Host); err != nil {
			return err
		}

		return s.srv.StartAutoTLS(fmt.Sprintf("%s:%d", s.cfg.Server.Domain,
			s.cfg.Server.Port))
	}