Skip to content

Commit

Permalink
[IM] Modernise PeeringDB and IX-F links
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Mar 3, 2022
1 parent 66d1a60 commit 0ac782d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/InfrastructureController.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ public function feInit(): void
'ixf_ix_id' => [
'title' => 'IXF-ID',
'type' => self::$FE_COL_TYPES[ 'REPLACE' ],
'subject' => '<a href="https://db.ix-f.net/api/ixp/%%COL%%" target="_blank">%%COL%%</a>',
'subject' => '<a href="' . config( 'ixp_api.IXPDB.ixp_www' ) . '/%%COL%%/" target="_blank">%%COL%%</a>',
],
'peeringdb_ix_id' => [
'title' => 'PeeringDB ID',
'type' => self::$FE_COL_TYPES[ 'REPLACE' ],
'subject' => '<a href="https://www.peeringdb.com/api/ix/%%COL%%" target="_blank">%%COL%%</a>',
'subject' => '<a href="' . config( 'ixp_api.peeringDB.ixp_www' ) . '/%%COL%%" target="_blank">%%COL%%</a>',
],
],
];
Expand Down
3 changes: 2 additions & 1 deletion config/ixp_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

'fac_api' => env( 'IXP_API_PEERING_DB_FAC_URL', "https://api.peeringdb.com/api/fac" ),
'ixp_api' => env( 'IXP_API_PEERING_DB_IXP_URL', "https://api.peeringdb.com/api/ix" ),

'ixp_www' => env( 'IXP_WWW_PEERING_DB_IXP_URL', "https://www.peeringdb.com/ix" ),
],

/*
Expand All @@ -106,6 +106,7 @@
*/
'IXPDB' => [
'ixp_api' => env( 'IXP_API_IXPDB_IXP_URL', "https://api.ixpdb.net/v1/provider/list" ),
'ixp_www' => env( 'IXP_WWW_IXPDB_IXP_URL', "https://ixpdb.euro-ix.net/en/ixpdb/ixp" ),
],

/*
Expand Down

0 comments on commit 0ac782d

Please sign in to comment.