How to change or ADD a Server Header in Containers Gateway using system.properties value
search cancel

How to change or ADD a Server Header in Containers Gateway using system.properties value

book

Article ID: 223016

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

I would like to add a custom server header on My Container Gateway.

On my appliance Gateway I would just add the line below on the configuration file:

/opt/SecureSpan/Gateway/node/default/etc/conf/system.properties

com.l7tech.server.response.header.server=NEWVALUE

How to do the same on a Container gateway adding this line on YAML file to be deployed with a container Gateway image?

 

Environment

All supported versions of the CA API Gateway

Resolution

In the container Gateway the system.properties values gets added via javaArgs or EXTRA_JAVA_ARGS depending on container YAML. To add a custom Server Header just add the property below to the YAML.

javaArgs:

    - -Dcom.l7tech.bootstrap.autoTrustSslKey=trustAnchor,TrustedFor.SSL,TrustedFor.SAML_ISSUER

    - -Dcom.l7tech.server.audit.message.saveToInternal=false

    - -Dcom.l7tech.server.audit.admin.saveToInternal=false

    - -Dcom.l7tech.server.audit.system.saveToInternal=false

    - -Dcom.l7tech.server.audit.log.format=json

    - -Djava.util.logging.config.file=/opt/SecureSpan/Gateway/node/default/etc/conf/log-override.properties

    - -Dcom.l7tech.server.pkix.useDefaultTrustAnchors=true

    - -Dcom.l7tech.security.ssl.hostAllowWildcard=true

    - -Dcom.l7tech.server.response.header.server=Custom _Server_Header