Allow for setting the bind address
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
50bd04fe7c
commit
6dfbc433a1
2 changed files with 12 additions and 1 deletions
|
@ -3,6 +3,15 @@
|
||||||
|
|
||||||
![Screenshot](screenshots/screenshot.webp)
|
![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
|
## Running
|
||||||
### Linux
|
### Linux
|
||||||
1. Download and extract the [latest release](https://git.sijman.nl/_/empede/releases)
|
1. Download and extract the [latest release](https://git.sijman.nl/_/empede/releases)
|
||||||
|
|
|
@ -196,6 +196,8 @@ async fn main() -> tide::Result<()> {
|
||||||
|
|
||||||
app.at("/static").serve_dir("static/")?;
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue