Secure Middleware (#37)

adding secure middleware to enforce security headers, most
of the options can be configured via env variables

adding prefix for mcs env variables

adding http redirect to https, adding csp report only, etc

solving conflicts

passing tls port configured by cli to secure middleware

update go.sum

adding default port, tlsport, host and tlshostname

fix tlsport bug
This commit is contained in:
Lenin Alevski
2020-04-06 13:24:15 -07:00
committed by GitHub
parent 9a2b10476c
commit 3a96e6d7e7
9 changed files with 272 additions and 13 deletions

4
.gitignore vendored
View File

@@ -22,3 +22,7 @@ mcs
!mcs/
dist/
# Ignore tls cert and key
private.key
public.crt