Skip to content

Instantly share code, notes, and snippets.

@compustar
Created August 25, 2022 19:14
Show Gist options
  • Save compustar/ef0bf50e2ec1176f5c81499073de2ddd to your computer and use it in GitHub Desktop.
Save compustar/ef0bf50e2ec1176f5c81499073de2ddd to your computer and use it in GitHub Desktop.
TLS Bumping for Java 6 AppDynamics Agent Instrumentation with NGINX
server {
listen ${NGINX_PORT};
server_name ${NGINX_HOST};
location / {
proxy_pass https://${APPD_ACCOUNT_NAME}.saas.appdynamics.com:443;
}
}
version: '3.4'
services:
proxy:
image: mitm_proxy:v0.8
container_name: mitm_proxy
environment:
- NGINX_HOST=mitm_proxy
- NGINX_PORT=80
- APPD_ACCOUNT_NAME=<AppDynamics Account Name> # Update this value with the account name and it will subsitute to the variable in default.conf.template
app:
image: appd_jdk6:v0.12
container_name: jboss6
depends_on:
- proxy
ports:
- "8888:8080"
environment:
- APPDYNAMICS_CONTROLLER_HOST_NAME=mitm_proxy
- APPDYNAMICS_CONTROLLER_PORT=80
- APPDYNAMICS_CONTROLLER_SSL_ENABLED=false
FROM yannart/jboss-5.1.0.ga-jdk6
# Download the agent and configure the controller-info.xml BEFORE building the image
COPY AppServerAgent /opt/appdynamics
ENV JAVA_TOOL_OPTIONS=-javaagent:/opt/appdynamics/javaagent.jar
FROM nginx
COPY default.conf.template /etc/nginx/templates/default.conf.template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment