mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
disable gateway timeout
This commit is contained in:
committed by
Aiden McClelland
parent
7f107efbf3
commit
f995b5a12a
1
Makefile
1
Makefile
@@ -25,6 +25,7 @@ clean:
|
|||||||
rm -rf patch-db/client/dist
|
rm -rf patch-db/client/dist
|
||||||
|
|
||||||
eos.img: $(EMBASSY_SRC)
|
eos.img: $(EMBASSY_SRC)
|
||||||
|
! test -f eos.img || rm eos.img
|
||||||
./build/make-image.sh
|
./build/make-image.sh
|
||||||
|
|
||||||
ubuntu.img:
|
ubuntu.img:
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ server {
|
|||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
proxy_socket_keepalive on;
|
proxy_socket_keepalive on;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
proxy_read_timeout 1800;
|
||||||
|
|
||||||
location /rpc/ {
|
location /rpc/ {
|
||||||
proxy_pass http://127.0.0.1:5959/;
|
proxy_pass http://127.0.0.1:5959/;
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ server {
|
|||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
proxy_socket_keepalive on;
|
proxy_socket_keepalive on;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
proxy_read_timeout 1800;
|
||||||
|
|
||||||
location /rpc/ {
|
location /rpc/ {
|
||||||
proxy_pass http://127.0.0.1:5959/;
|
proxy_pass http://127.0.0.1:5959/;
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ server {
|
|||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
proxy_socket_keepalive on;
|
proxy_socket_keepalive on;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
proxy_read_timeout 1800;
|
||||||
|
|
||||||
location /rpc/ {
|
location /rpc/ {
|
||||||
proxy_pass http://127.0.0.1:5959/;
|
proxy_pass http://127.0.0.1:5959/;
|
||||||
|
|||||||
@@ -43,6 +43,23 @@ pub async fn execute(
|
|||||||
#[context] ctx: SetupContext,
|
#[context] ctx: SetupContext,
|
||||||
#[arg(rename = "embassy-logicalname")] embassy_logicalname: PathBuf,
|
#[arg(rename = "embassy-logicalname")] embassy_logicalname: PathBuf,
|
||||||
#[arg(rename = "embassy-password")] embassy_password: String,
|
#[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> {
|
) -> Result<SetupResult, Error> {
|
||||||
let guid =
|
let guid =
|
||||||
crate::disk::main::create(&ctx.zfs_pool_name, [embassy_logicalname], DEFAULT_PASSWORD)
|
crate::disk::main::create(&ctx.zfs_pool_name, [embassy_logicalname], DEFAULT_PASSWORD)
|
||||||
|
|||||||
Reference in New Issue
Block a user