disable gateway timeout

This commit is contained in:
Aiden McClelland
2021-10-02 14:55:50 -06:00
parent 43cda446aa
commit a581428328
5 changed files with 21 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ clean:
rm -rf patch-db/client/dist
eos.img: $(EMBASSY_SRC)
! test -f eos.img || rm eos.img
./build/make-image.sh
ubuntu.img:

View File

@@ -12,6 +12,7 @@ server {
proxy_request_buffering off;
proxy_socket_keepalive on;
proxy_http_version 1.1;
proxy_read_timeout 1800;
location /rpc/ {
proxy_pass http://127.0.0.1:5959/;

View File

@@ -12,6 +12,7 @@ server {
proxy_request_buffering off;
proxy_socket_keepalive on;
proxy_http_version 1.1;
proxy_read_timeout 1800;
location /rpc/ {
proxy_pass http://127.0.0.1:5959/;

View File

@@ -12,6 +12,7 @@ server {
proxy_request_buffering off;
proxy_socket_keepalive on;
proxy_http_version 1.1;
proxy_read_timeout 1800;
location /rpc/ {
proxy_pass http://127.0.0.1:5959/;

View File

@@ -43,6 +43,23 @@ pub async fn execute(
#[context] ctx: SetupContext,
#[arg(rename = "embassy-logicalname")] embassy_logicalname: PathBuf,
#[arg(rename = "embassy-password")] embassy_password: String,
) -> Result<SetupResult, Error> {
match execute_inner(ctx, embassy_logicalname, embassy_password).await {
Ok(a) => {
log::info!("Setup Successful! Tor Address: {}", a.tor_address);
Ok(a)
}
Err(e) => {
log::error!("Error Setting Up Embassy: {}", e);
Err(e)
}
}
}
pub async fn execute_inner(
ctx: SetupContext,
embassy_logicalname: PathBuf,
embassy_password: String,
) -> Result<SetupResult, Error> {
let guid =
crate::disk::main::create(&ctx.zfs_pool_name, [embassy_logicalname], DEFAULT_PASSWORD)