-
Notifications
You must be signed in to change notification settings - Fork 856
How to use a proxy (like nirn‐proxy)
Laurent Demailly edited this page May 26, 2025
·
1 revision
If it's a real http/https proxy you can just set the std env vars HTTP_PROXY and HTTPS_PROXY and the go client will use them
For proxies that aren't actual proxy, you can just link/run your bot as such
go run -ldflags '-X github.com/bwmarrin/discordgo.EndpointDiscord=http://localhost:8080/' .
It will replace all api by http://localhost:8080/api/v9/gateway
...
Eg after:
docker run -p 8080:8080 ghcr.io/germanoeich/nirn-proxy:main &
Your bot will use the above proxy (not endorsed, was just mentioned/requested on discord gophers)