andrew on Nostr: So, looks like you didn’t actually try it in Safari? Still needs the resolver hack. ...
So, looks like you didn’t actually try it in Safari? Still needs the resolver hack. However with a modified proxy.pac served from caddy (Safari needs SOCKS, does not respect SOCKS5), I could get it working without privoxy, thank you for that!
cat /opt/homebrew/etc/Caddyfile
{
admin off
http_port 2019
auto_https off
}
http://localhost:2019header /proxy.pac Content-Type application/x-ns-proxy-autoconfig
respond /proxy.pac 200 {
body `function FindProxyForURL(url, host) { if (shExpMatch(host, "*.onion"))
{ return "SOCKS5 127.0.0.1:9050;SOCKS 127.0.0.1:9050"; } return "DIRECT"; }
`
close
}
Published at
2023-01-05 06:49:13Event JSON
{
"id": "782dc096e0e5f980f772ae4821ac1433fdb54562e3ffaeb8e15a0ee55ccdd8fd",
"pubkey": "b726de20b515705ffee951591e8f54f42f93bb8509df81a851cd5bc949ec1332",
"created_at": 1672901353,
"kind": 1,
"tags": [
[
"e",
"a885b7dd870a14b199e3843ed3036e542d2b8d331e3801cf3b2043ee35e2ee62"
],
[
"e",
"d058684758e5f47e36e38a062fabd96b90de70d5a2d255d33685cfbcf4a61102"
],
[
"p",
"31e4cd8f2e26886eba6f0d220f4ebf99a93ef2b295ae1dfb0814d417c98746d5"
]
],
"content": "So, looks like you didn’t actually try it in Safari? Still needs the resolver hack. However with a modified proxy.pac served from caddy (Safari needs SOCKS, does not respect SOCKS5), I could get it working without privoxy, thank you for that!\n\ncat /opt/homebrew/etc/Caddyfile\n{\n\tadmin off\n\thttp_port 2019\n\tauto_https off\n}\n\nhttp://localhost:2019\nheader /proxy.pac Content-Type application/x-ns-proxy-autoconfig\nrespond /proxy.pac 200 {\n\tbody `function FindProxyForURL(url, host) { if (shExpMatch(host, \"*.onion\"))\n\t\t{ return \"SOCKS5 127.0.0.1:9050;SOCKS 127.0.0.1:9050\"; } return \"DIRECT\"; }\n`\n\tclose\n}",
"sig": "f3a39cfbf0fdf359977fd51114bd1e9dffaa8bb000d4617a667c675fd6943219bfeb7a9a084c58a2d19bf05a6279c2109cf2a5935fd0ce45c12c286a563a3987"
}