Set host adapter to 0.0.0.0 for http and smtp
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
573794708a
commit
f4403b6878
|
@ -26,7 +26,7 @@ steps:
|
|||
|
||||
- name: binary-deploy
|
||||
image: rust:latest
|
||||
depends_on: [ build-ui ]
|
||||
depends_on: [ build-ui, test ]
|
||||
volumes:
|
||||
- name: temp
|
||||
path: /app
|
||||
|
@ -47,7 +47,7 @@ steps:
|
|||
|
||||
- name: build-musl
|
||||
image: rust
|
||||
depends_on: [ build-ui ]
|
||||
depends_on: [ build-ui, test ]
|
||||
volumes:
|
||||
- name: temp
|
||||
path: /app
|
||||
|
@ -63,7 +63,7 @@ steps:
|
|||
- name: stage-deploy
|
||||
image: plugins/docker
|
||||
privileged: true
|
||||
depends_on: [ build-musl ]
|
||||
depends_on: [ build-musl, test ]
|
||||
volumes:
|
||||
- name: temp
|
||||
path: /app
|
||||
|
|
|
@ -31,7 +31,7 @@ pub async fn server(mailbox: Mailbox, port: u16) -> anyhow::Result<()> {
|
|||
.at("/", EmbeddedFileEndpoint::<Files>::new("index.html"))
|
||||
.nest("/", EmbeddedFilesEndpoint::<Files>::new())
|
||||
.with(AddData::new(mailbox));
|
||||
if let Err(e) = Server::new(TcpListener::bind(format!("localhost:{}", port)))
|
||||
if let Err(e) = Server::new(TcpListener::bind(format!("0.0.0.0:{}", port)))
|
||||
.run(app)
|
||||
.await
|
||||
{
|
||||
|
|
|
@ -142,7 +142,7 @@ impl Connection {
|
|||
}
|
||||
|
||||
pub async fn server(mailbox: Mailbox, port: u16) -> anyhow::Result<()> {
|
||||
let addr = format!("127.0.0.1:{}", port);
|
||||
let addr = format!("0.0.0.0:{}", port);
|
||||
let listener = TcpListener::bind(&addr).await?;
|
||||
tracing::info!(port =? port, "SMTP Server running");
|
||||
tokio::spawn(async move {
|
||||
|
|
Loading…
Reference in New Issue