add privoxy and tor

This commit is contained in:
red 2025-03-11 14:04:06 -04:00
parent 33fb3b718e
commit 26b463e3db
6 changed files with 155 additions and 3 deletions

View file

@ -9,7 +9,7 @@ RUN wget 'https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/dow
RUN unzip /tmp/pleroma.zip -d /tmp/
RUN apk update && \
apk add exiftool ffmpeg vips libmagic ncurses postgresql-client
apk add exiftool ffmpeg vips libmagic ncurses postgresql-client curl
RUN adduser --system --shell /bin/false --home ${HOME} pleroma &&\
mkdir -p ${DATA} &&\
@ -22,7 +22,7 @@ RUN adduser --system --shell /bin/false --home ${HOME} pleroma &&\
RUN rm -r /tmp/release
RUN rm /tmp/pleroma.zip
# USER pleroma
USER pleroma
COPY --chmod=0764 --chown=pleroma ./static-files/ /static-files/
COPY --chmod=0640 --chown=pleroma ./docker.exs /etc/pleroma/config.exs

View file

@ -20,8 +20,9 @@ config :pleroma, :instance,
invites_enabled: true,
healthcheck: true
# config :pleroma, :http, proxy_url: {:socks5h, System.get_env("SOCKS_ADDRESS"), System.get_env("SOCKS_PORT")}
config :pleroma, :http,
proxy_url: { :socks5, {10, 8, 0, 1}, 1080 }
proxy_url: "http://privoxy:8118"
config :pleroma, :media_proxy,