Skip to content

Commit

Permalink
--proxy-server in brave wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurvan Rivoal committed Jan 3, 2025
1 parent bc4cbdc commit 8ee6bfc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ADD https://raw.githubusercontent.com/kasmtech/workspaces-images/refs/heads/deve
RUN mkdir /home/kasm-user/Desktop/ && \
bash /tmp/brave/install_brave.sh && rm -rf /tmp/brave/
COPY ./brave-policy.json /etc/brave/policies/managed/disable_tor.json
RUN sed -i 's/--password-store=basic/& --proxy-server="${HTTPS_PROXY}"/g' /usr/bin/brave-browser

# Tor Browser
RUN echo "deb http://deb.debian.org/debian/ bookworm main contrib non-free" > /etc/apt/sources.list
Expand Down
6 changes: 1 addition & 5 deletions brave-policy.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"TorDisabled": false,
"ProxySettings": {
"ProxyMode": "fixed_servers",
"ProxyServer": "__SOCKS_PROXY__"
}
"TorDisabled": false
}
11 changes: 0 additions & 11 deletions custom_startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ else
exit 1
fi

# Replace __SOCKS_PROXY__ in the brave policy file
file="/etc/brave/policies/managed/disable_tor.json"

if [ -f "$file" ]; then
sed -i "s/__SOCKS_PROXY__/$socks_proxy/g" "$file"
echo "File updated: $file"
else
echo "File not found: $file"
exit 1
fi

torbrowser-launcher

tail -f /dev/null

0 comments on commit 8ee6bfc

Please sign in to comment.