File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ func init() {
181181 if Cfg .DelegatePrivateKey == "" {
182182 log .Fatalf ("Missing required %s env var: delegatePrivateKey" , env )
183183 }
184- Cfg .AntiAbuseOracles = []string {"https://discoveryprovider .audius.co " }
184+ Cfg .AntiAbuseOracles = []string {"https://anti-abuse-oracle .audius.engineering " }
185185 Cfg .ArchiverNodes = []string {"https://archiver.audius.engineering" }
186186 Cfg .DeadNodes = []string {
187187 "https://content.grassfed.network" ,
@@ -278,6 +278,11 @@ func init() {
278278 Cfg .ArchiverNodes = strings .Split (v , "," )
279279 }
280280
281+ // Override anti-abuse oracle endpoint(s) when set, so the URL can be rotated without a code deploy.
282+ if v := os .Getenv ("antiAbuseOracles" ); v != "" {
283+ Cfg .AntiAbuseOracles = strings .Split (v , "," )
284+ }
285+
281286 if v := os .Getenv ("featuredAudienceUserId" ); v != "" {
282287 parsed , err := strconv .ParseInt (v , 10 , 32 )
283288 if err != nil {
You can’t perform that action at this time.
0 commit comments