Allow for setting the bind address
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
50bd04fe7c
commit
6dfbc433a1
|
@ -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)
|
||||
|
|
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue