@@ -307,7 +307,7 @@ export class GameStreamerService {
307307
308308 const sessionToken = randomBytes ( 24 ) . toString ( "hex" ) ;
309309
310- const streamUrl = `${ this . appConfig . gameStreamHlsBase } /${ matchId } /` ;
310+ const streamUrl = `${ this . appConfig . gameStreamDomain } /${ matchId } /` ;
311311
312312 const bootIso = new Date ( ) . toISOString ( ) ;
313313 const { insert_match_demo_sessions_one } = await this . hasura . mutation ( {
@@ -1215,7 +1215,7 @@ export class GameStreamerService {
12151215 matchId : string ,
12161216 mode : "live" | "tv" ,
12171217 ) : Promise < string > {
1218- const link = `${ this . appConfig . gameStreamHlsBase } /${ matchId } /` ;
1218+ const link = `${ this . appConfig . gameStreamDomain } /${ matchId } /` ;
12191219 const nowIso = new Date ( ) . toISOString ( ) ;
12201220 const statusHistory = JSON . stringify ( [ { status : "booting" , at : nowIso } ] ) ;
12211221
@@ -1561,7 +1561,7 @@ export class GameStreamerService {
15611561 object : {
15621562 match_id : matchId ,
15631563 title : GAME_STREAMER_TITLE ,
1564- link : `${ this . appConfig . gameStreamHlsBase } /${ matchId } /` ,
1564+ link : `${ this . appConfig . gameStreamDomain } /${ matchId } /` ,
15651565 priority : 0 ,
15661566 is_game_streamer : true ,
15671567 ...setClause ,
@@ -1697,6 +1697,17 @@ export class GameStreamerService {
16971697 { name : "DISPLAY_SIZEW" , value : "1920" } ,
16981698 { name : "DISPLAY_SIZEH" , value : "1080" } ,
16991699 { name : "OPENHUD_AUTO_OVERLAY" , value : "1" } ,
1700+ // Forward the configured public HLS host so the streamer
1701+ // can log/print correct watch URLs (otherwise the scripts
1702+ // fall back to a hardcoded hls.5stack.gg).
1703+ ...( process . env . GAME_STREAM_DOMAIN
1704+ ? [
1705+ {
1706+ name : "GAME_STREAM_DOMAIN" ,
1707+ value : process . env . GAME_STREAM_DOMAIN ,
1708+ } ,
1709+ ]
1710+ : [ ] ) ,
17001711 // Steam credentials inlined from the API's own config
17011712 // rather than mounting a `steam-secrets` K8s Secret —
17021713 // matches game-server-node.service.ts (line ~519). The
0 commit comments