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  add a custom server header on My Container Gateway 

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

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

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

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

 

Environment

Release : 10.1

Component : API GATEWAY

Resolution

In the container Gateway the system.properties values gets added 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