From 2b471b9f33751c03797a674a5038266b6cc35651 Mon Sep 17 00:00:00 2001 From: Steve McMaster Date: Thu, 19 Sep 2024 00:03:57 -0400 Subject: [PATCH] update --- splunk_license_hacking.tf.j2 | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/splunk_license_hacking.tf.j2 b/splunk_license_hacking.tf.j2 index 236c41a..f4353b4 100644 --- a/splunk_license_hacking.tf.j2 +++ b/splunk_license_hacking.tf.j2 @@ -16,6 +16,21 @@ resource "coder_app" "splunk-lm" { threshold = 10 } } + +resource "coder_app" "mitmproxy" { + agent_id = coder_agent.main.id + display_name = "mitmproxy" + slug = "mitmproxy" + url = "http://localhost:8081/" + subdomain = true + share = "public" + + healthcheck { + url = "http://localhost:8081/" + interval = 3 + threshold = 10 + } +} {{ super() }} {% endblock %} @@ -47,7 +62,13 @@ resource "coder_app" "splunk-lm" { container { name = "mitmproxy" image = "mitmproxy/mitmproxy" - command = ["mitmdump", "--mode", "reverse:https://localhost:8090@8091", "--ssl-insecure"] + command = [ + "mitmweb", + "--mode", + "reverse:https://localhost:8090@8091", + "--ssl-insecure", + "--flow-detail=4" + ] image_pull_policy = "{{ image_pull_policy }}" security_context {