Repository navigation
Conversation
This adds numerous flags with inspiration taken from Vault for configuring TLS inside Coder. This enables secure deployments without a proxy, like Cloudflare.
Codecov Report
@@ Coverage Diff @@
## main #556 +/- ##
==========================================
+ Coverage 62.65% 63.10% +0.44%
==========================================
Files 194 191 -3
Lines 10977 10923 -54
Branches 85 85
==========================================
+ Hits 6878 6893 +15
+ Misses 3360 3292 -68
+ Partials 739 738 -1
Continue to review full report at Codecov.
|
| server := http.Server{ | ||
| Handler: handler, | ||
| BaseContext: func(_ net.Listener) context.Context { | ||
| return shutdownConnsCtx |
There was a problem hiding this comment.
This is cool! When cancelling this context, is it a hard cutoff to websockets (ie just severs the connection), or does it send a close frame?
There was a problem hiding this comment.
Hard cutoff right now, but we technically could send a shutdown signal. Maybe I'll do that...
There was a problem hiding this comment.
i don't necessarily think either is right or wrong, just asking for my own curiosity mostly!
| @@ -1,3 +1,6 @@ | |||
| # Runtime variables for "coder start". | |||
| # Run "coder start --help" to vie. | |||
Co-authored-by: Colin Adler <colin@coder.com>
This adds numerous flags with inspiration taken from Vault
for configuring TLS inside Coder.
This enables secure deployments without a proxy, like Cloudflare.