Skip to content

Commit

Permalink
Merge pull request #80 from OpenMined/rasswanth/shift-to-domain-name
Browse files Browse the repository at this point in the history
modify syft box ip to https domain name
  • Loading branch information
madhavajay authored Oct 11, 2024
2 parents 9b0c3e3 + 24d44f2 commit 9b8732d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,25 @@

# Quickstart User Installation

## install uv
## SyftBox 1 liner

curl -LsSf https://syftbox.openmined.org/install.sh | sh -s -- run

## Manual install

### install uv

curl -LsSf https://astral.sh/uv/install.sh | sh

## create a virtualenv somewhere
### create a virtualenv somewhere

uv venv .venv

## Install Syftbox
### Install Syftbox

uv pip install -U syftbox

## run the client
### run the client

uv run syftbox client

Expand Down Expand Up @@ -66,13 +72,17 @@ uv run syftbox/client/client.py
### Run Client

```
syftbox client --config_path=./config.json --sync_folder=~/Desktop/SyftBox [email protected] --port=8082 --server=http://syftbox.openmined.org:8080
syftbox client --config_path=./config.json --sync_folder=~/Desktop/SyftBox [email protected] --port=8082 --server=https://syftbox.openmined.org
```

### Staging Server

If you have issues or want to use a bleeding edge server try --server=https://syftboxstage.openmined.org

### Deploy

This builds the latest source to a wheel and deploys and restarts the server:
http://syftbox.openmined.org:8080
https://syftbox.openmined.org

```
./scripts/deploy.sh
Expand Down
2 changes: 1 addition & 1 deletion scripts/live_andrew.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
uv run syftbox/client/client.py --config_path=./users/live_andrew.json --sync_folder=./users/live_andrew [email protected] --port=8082 --server=http://syftbox.openmined.org:8080
uv run syftbox/client/client.py --config_path=./users/live_andrew.json --sync_folder=./users/live_andrew [email protected] --port=8082 --server=https://syftbox.openmined.org
2 changes: 1 addition & 1 deletion scripts/live_madhava.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
uv run syftbox/client/client.py --config_path=./users/live_madhava.json --sync_folder=./users/live_madhava [email protected] --port=8081 --server=http://syftbox.openmined.org:8080
uv run syftbox/client/client.py --config_path=./users/live_madhava.json --sync_folder=./users/live_madhava [email protected] --port=8081 --server=https://syftbox.openmined.org
6 changes: 5 additions & 1 deletion syftbox/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def load_or_create_config(args) -> ClientConfig:
if email_token:
client_config.email_token = email_token

# Migrate Old Server URL to HTTPS
if client_config.server_url == "http://20.168.10.234:8080":
client_config.server_url = "https://syftbox.openmined.org"

client_config.save(args.config_path)
return client_config

Expand Down Expand Up @@ -293,7 +297,7 @@ def parse_args():
parser.add_argument(
"--server",
type=str,
default="http://20.168.10.234:8080",
default="https://syftbox.openmined.org",
help="Server",
)
return parser.parse_args()
Expand Down

0 comments on commit 9b8732d

Please sign in to comment.