Skip to content

Commit

Permalink
Version 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kimbtech committed Nov 24, 2023
1 parent 84629d8 commit 4608720
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md → Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ This redirect is possible by manipulating the DNS queries.
- The stations recently opened via the radio are shown in *My Last*.
- *Using Radio-Browser will send http requests and such usage data to the [RadioBrowser API](https://api.radio-browser.info/)!*
- In the GUI it is also possible to search for stations in RadioBrowser and add them to the user defined stations. Stations from *My Last* are shown in the GUI, too.
- **Stream** (if enabled in `docker-compose.yml`, see [Own Streams](#own-streams))
- **Stream** (if enabled in `docker-compose.yml`, see [Own Streams](./Setup.md#own-streams))
- This is a list of server specific streams.
- The list is fetched from a custom url, provided in the Docker Container setup.
- The Streams are shared across all radios using the same *Radio-API* setup.
Expand Down
6 changes: 3 additions & 3 deletions Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ It is also possible to run Radio-API on a simple webserver with PHP [↓](#ma
## Setup using Docker
The entire API is bundled in a [Docker Image](https://hub.docker.com/r/kimbtechnologies/radio_api).

1. Redirect the HTTP request of the radio to your server (the *Radio-API*).
1. Redirect the HTTP requests of the radio to your server (the *Radio-API*).
- This is done by altering the DNS queries.
- There is a [Docker Image](https://hub.docker.com/r/kimbtechnologies/radio_dns) which provides a DNS server altering all requests to `*.wifiradiofrontier.com`.
- It has a feature to define an `ALLOWED_DOMAIN`, only requests from the corresponding IP address will be answered.
Expand Down Expand Up @@ -35,7 +35,7 @@ The entire API is bundled in a [Docker Image](https://hub.docker.com/r/kimbtechn
- Use the data volume of Redis. (Redis will (re-)load its dump files on container startup.)
3. Done
- Start the radio and open `Internet Radio`.
- You will see the entries described at [Usage](./Readme.md#usage).
- You will see the entries described at [Usage](./#usage).
- Use the GUI to define the list of stations and podcasts. It can be accessed with a browser at `CONF_DOMAIN/gui`.
- You will need the code shown by the radio to log into the GUI.
- Each connected radio has is own list of user defined radio stations and podcasts, the *own streams* are global.
Expand Down Expand Up @@ -81,7 +81,7 @@ The image of [Radio DNS](https://hub.docker.com/r/kimbtechnologies/radio_dns) is
- See the example for NGINX below. The built in webserver of PHP may be used for development with the `router.php` in the repository's root.
3. Done
- Start the radio and open `Internet Radio`.
- You will see the entries described above at [Usage](./Readme.md#usage)..
- You will see the entries described above at [Usage](./#usage).

### Rewrite with NGINX

Expand Down
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
2.6.0
2.6
2.7.0
2.7
2
4 changes: 2 additions & 2 deletions php/classes/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Config {
/**
* The system's version.
*/
const VERSION = 'v2.6.0';
const VERSION = 'v2.7.0';

/**
* The real domain which should be used.
Expand Down Expand Up @@ -162,7 +162,7 @@ public static function setRedisServer() : void {
public static function updateAvailable() : bool {
if( is_null( self::$redisUpdateStatus ) ){ // load redis, if not loaded
self::setRedisServer();
self::$redisUpdateStatus = new RedisCache( 'update_status' );
self::$redisUpdateStatus = new Cache( 'update_status' );
}

if(!self::$redisUpdateStatus->keyExists('update_available')){
Expand Down
2 changes: 1 addition & 1 deletion php/classes/SimpleProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private static function sendHeader( $header ){
}
}
if( $ok ){
header( preg_replace( "\n|\r/", '', $h ) );
header( preg_replace( "/\n|\r/", '', $h ) );
}
}
}
Expand Down

0 comments on commit 4608720

Please sign in to comment.