Initial commit: Anthropic API and MITM proxy to WaybackProxy

This commit is contained in:
2026-03-18 01:27:44 -04:00
commit 8390c34d30
14 changed files with 1360 additions and 0 deletions

19
Dockerfile.mitm Normal file
View File

@@ -0,0 +1,19 @@
FROM mitmproxy/mitmproxy:10.1.1
USER root
COPY mitm/addon.py /opt/addon.py
COPY mitm/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Ensure the mitmproxy home and cert directory exist with correct ownership
# Some mitmproxy versions write certs to ~/.mitmproxy/, others directly to ~/
RUN mkdir -p /home/mitmproxy/.mitmproxy && \
chown -R mitmproxy:mitmproxy /home/mitmproxy && \
chmod -R 755 /home/mitmproxy
USER mitmproxy
EXPOSE 8080
ENTRYPOINT ["/entrypoint.sh"]