diff --git a/xwords4/relay/http.cpp b/xwords4/relay/http.cpp index a1a649930..c24076142 100644 --- a/xwords4/relay/http.cpp +++ b/xwords4/relay/http.cpp @@ -67,8 +67,17 @@ static void send_meta( FILE* fil ) { FILE* css; + RelayConfigs* cfg = RelayConfigs::GetConfigs(); + fprintf( fil, "" ); - fprintf( fil, "" ); + + if ( !!cfg ) { + int refreshSecs; + if ( cfg->GetValueFor( "WWW_REFRESH_SECS", &refreshSecs ) ) { + fprintf( fil, "", + refreshSecs ); + } + } css = fopen( "./xwrelay.css", "r" ); if ( NULL != css ) { diff --git a/xwords4/relay/xwrelay.conf b/xwords4/relay/xwrelay.conf index 4c45dd27e..bfc90bfbb 100644 --- a/xwords4/relay/xwrelay.conf +++ b/xwords4/relay/xwrelay.conf @@ -30,6 +30,7 @@ WWWPORT=11001 #WWW_LISTEN_ADDR=0 #--- INADDR_LOOPBACK: 0x7f000001/2130706433 WWW_LISTEN_ADDR=2130706433 +WWW_REFRESH_SECS=30 # Need a unique name for every instance of the relay so they can # create game ids guaranteed to be unique