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
|
- name: binary-deploy
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
depends_on: [ build-ui ]
|
depends_on: [ build-ui, test ]
|
||||||
volumes:
|
volumes:
|
||||||
- name: temp
|
- name: temp
|
||||||
path: /app
|
path: /app
|
||||||
|
@ -47,7 +47,7 @@ steps:
|
||||||
|
|
||||||
- name: build-musl
|
- name: build-musl
|
||||||
image: rust
|
image: rust
|
||||||
depends_on: [ build-ui ]
|
depends_on: [ build-ui, test ]
|
||||||
volumes:
|
volumes:
|
||||||
- name: temp
|
- name: temp
|
||||||
path: /app
|
path: /app
|
||||||
|
@ -63,7 +63,7 @@ steps:
|
||||||
- name: stage-deploy
|
- name: stage-deploy
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
privileged: true
|
privileged: true
|
||||||
depends_on: [ build-musl ]
|
depends_on: [ build-musl, test ]
|
||||||
volumes:
|
volumes:
|
||||||
- name: temp
|
- name: temp
|
||||||
path: /app
|
path: /app
|
||||||
|
|
|
@ -31,7 +31,7 @@ pub async fn server(mailbox: Mailbox, port: u16) -> anyhow::Result<()> {
|
||||||
.at("/", EmbeddedFileEndpoint::<Files>::new("index.html"))
|
.at("/", EmbeddedFileEndpoint::<Files>::new("index.html"))
|
||||||
.nest("/", EmbeddedFilesEndpoint::<Files>::new())
|
.nest("/", EmbeddedFilesEndpoint::<Files>::new())
|
||||||
.with(AddData::new(mailbox));
|
.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)
|
.run(app)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
|
|
|
@ -142,7 +142,7 @@ impl Connection {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn server(mailbox: Mailbox, port: u16) -> anyhow::Result<()> {
|
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?;
|
let listener = TcpListener::bind(&addr).await?;
|
||||||
tracing::info!(port =? port, "SMTP Server running");
|
tracing::info!(port =? port, "SMTP Server running");
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
|
|
Loading…
Reference in New Issue