Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

No way to configure the endpoint options when using PreferServerUrls #2167

Closed
Tratcher opened this issue Nov 16, 2017 · 2 comments
Closed

No way to configure the endpoint options when using PreferServerUrls #2167

Tratcher opened this issue Nov 16, 2017 · 2 comments
Assignees

Comments

@Tratcher
Copy link
Member

I wanted to turn on listenOptions.UseConnectionLogging(); behind ANCM but there's no way to do this, PreferServerUrls overrides all Kestrel ListenOptions.

@Tratcher Tratcher added the bug label Nov 16, 2017
@halter73
Copy link
Member

Hmm. This brings me back to the idea of having something like KestrelServerOptions.ConfigureAllEndpoints(Action<ListenOptions>).

I don't love it, but it's my best idea so far other than just not supporting connection middleware for "ServerUrls".

@Tratcher
Copy link
Member Author

Ordering will be an interesting problem for shared middleware no matter what.

Many of the other options will be simpler, we can use that callback (first, so you can override it) or KSO can have properties for defaults like DefaultProtocols.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants