Added Functionality to Specify Different Type of Connections e.g a Unix Socket

This commit is contained in:
aditya-K2
2022-08-31 11:28:02 +05:30
parent dc88d56d77
commit d7be3e201d
4 changed files with 40 additions and 1 deletions

View File

@@ -26,6 +26,26 @@ This is the port where your Music Player Daemon Is Running
```yml
MPD_PORT : "6600"
```
## Network Type
By Default gomp assumes that you connect to MPD Server through tcp, But if your MPD Server is configured to expose a unix socket rather than a port, then you can specify network type to "unix"
```yml
NETWORK_TYPE : "unix"
```
Read More about it in the [sample_config](https://github.com/aditya-K2/gomp/blob/master/sample_config.yml)
## Network Address
The Address of the Host for e.g `"localhost"` or `"/path/to/unix/socket/"` if you are using unix sockets
Defaults to `localhost`
```yml
NETWORK_ADDRESS : "/home/$USER/.mpd/socket"
```
Read More about it in the [sample_config](https://github.com/aditya-K2/gomp/blob/master/sample_config.yml)
## Music Directory