Allow for setting the bind address
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sijmen 2023-04-28 00:33:13 +02:00
parent 50bd04fe7c
commit 6dfbc433a1
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
2 changed files with 12 additions and 1 deletions

View File

@ -3,6 +3,15 @@
![Screenshot](screenshots/screenshot.webp)
## Configuration
Empede is configured using environment variables:
| Name | Default | Description |
| ----------- | ------------ | --------------------------------- |
| MPD_HOST | localhost | MPD server host |
| MPD_PORT | 6600 | MPD server port |
| EMPEDE_BIND | 0.0.0.0:8080 | Address for Empede to bind to |
## Running
### Linux
1. Download and extract the [latest release](https://git.sijman.nl/_/empede/releases)

View File

@ -196,6 +196,8 @@ async fn main() -> tide::Result<()> {
app.at("/static").serve_dir("static/")?;
app.listen("0.0.0.0:8080").await?;
let bind = std::env::var("EMPEDE_BIND").unwrap_or("0.0.0.0:8080".to_string());
app.listen(bind).await?;
Ok(())
}