This commit is contained in:
William 2023-01-22 20:51:48 +01:00
parent e1e9c9e99b
commit 3debe1cf37
2 changed files with 7 additions and 2 deletions

View File

@ -25,6 +25,11 @@ http {
error_page 404 /index.php;
location /radio/hbr1/trance.ogg {
proxy_pass http://radio.hbr1.com/stream/trance.ogg;
proxy_buffering off;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}

View File

@ -15,7 +15,7 @@ function special_events(): string {
<title><?=htmlspecialchars($title)?> - the Willy Club</title>
<link rel="stylesheet" href="<?=url('/static/style/fonts.css')?>">
<link rel="stylesheet" href="<?=url('/static/style/main.css')?>">
<link rel="shortcut icon" href="<?=url('/static/img/3d-spinning-toilet-smiley-emoticon-small.gif')?>" type="image/x-icon">
<link rel="shortcut icon" href="<?=url('/static/img/wc.gif')?>" type="image/x-icon">
</head>
<body>
@ -30,7 +30,7 @@ function special_events(): string {
// some browsers (cough cough safari) dont like the live broadcast and so just keeps loading forever
window.addEventListener('load', function () {
radio.innerHTML = `
<audio controls autoplay preload="none"><source src="http://radio.hbr1.com/stream/trance.ogg" type="audio/ogg"></audio>
<audio controls autoplay preload="none"><source src="<?=url('/radio/hbr1/trance.ogg')?>?` + Date.now() + `" type="audio/ogg"></audio>
`;
});
</script>