cmd/gitbayd/tls.go

ac8d910ff31c2fadc452928e1d56c64b4af25495
gitbay/cmd/gitbayd/tls.go

13 lines · 270 bytes

 1package main
 2
 3import "crypto/tls"
 4
 5// serverTLS sets the HTTPS listener's protocol floor: TLS 1.2 and 1.3,
 6// with Go's default cipher suites.
 7func serverTLS(c *tls.Config) *tls.Config {
 8	if c == nil {
 9		c = &tls.Config{}
10	}
11	c.MinVersion = tls.VersionTLS12
12	return c
13}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form