Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable admin port in DropWizard while using gzip server mode/type

I am trying to disable admin port in DropWizard while using 'gzip' server mode. I know this is possible in 'simple' server. Below is the .yml file configuration. -

server:
  type: simple

but I want to disable admin port in gzip server mode.

server:
  gzip:
    bufferSize: 8KiB

NOTE: I cant use 'simple' server as we have dependency on 'gzip'. I am out of ideas now any help is really appreciated.

like image 211
snehal_jagtap Avatar asked Sep 17 '25 15:09

snehal_jagtap


1 Answers

The default Dropwizard config includes an admin connector. To prevent this, you will need to explicitly tell it to not include any admin connectors:

server:
  gzip:
    bufferSize: 8KiB
  adminConnectors: []
like image 87
Sperr Avatar answered Sep 21 '25 06:09

Sperr