Skip to content

Commit

Permalink
Change default ports #229
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Dec 9, 2021
1 parent 04a66d2 commit f8486ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ By far most changes relate to `atomic-server`, so if not specified, assume the c
- Allow Agents to write and edit themselves #220
- Less collections for first-time users #224
- Sort collections by subject by default
- Set default port to 9883 instead of 80 #229

## v0.29.0

Expand Down
2 changes: 1 addition & 1 deletion server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ sudo apt-get install -y pkg-config libssl-dev --fix-missing
- The server loads the `.env` from the current path by default. Create a `.env` file from the default template in your current directory with `atomic-server setup-env`.
- After running the server, check the logs and take note of the `Agent Subject` and `Private key`. You should use these in the [`atomic-cli`](https://crates.io/crates/atomic-cli) and [atomic-data-browser](https://github.com/joepio/atomic-data-browser) clients for authorization.
- A directory is made: `~/.config/atomic`, which stores your newly created Agent keys, your data, the HTTPS certificates and a folder for public static files.
- Visit `http://localhost/setup` to **register your first (admin) user**. You can use an existing Agent, or create a new one.
- Visit `http://localhost:9883/setup` to **register your first (admin) user**. You can use an existing Agent, or create a new one.

### HTTPS Setup

Expand Down
4 changes: 2 additions & 2 deletions server/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
# Port where it's running. Make sure you have the rights to run at this port.
# Both an HTTPS and an HTTP port can be specified.
# Both are necesssary during CERT_INIT
# ATOMIC_PORT=80
# ATOMIC_PORT_HTTPS=443
# ATOMIC_PORT=9883
# ATOMIC_PORT_HTTPS=9884

# Local IP where it's running. Use 0.0.0.0 if you want it to be public.
# ATOMIC_IP=0.0.0.0
Expand Down
11 changes: 6 additions & 5 deletions server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ pub struct Opts {
/// The contact mail address for Let's Encrypt HTTPS setup
#[clap(long, env = "ATOMIC_EMAIL")]
pub email: Option<String>,
/// The port where the HTTP app is available
#[clap(short, long, default_value = "80", env = "ATOMIC_PORT")]
// 9.883 is decimal for the `⚛` character.
/// The port where the HTTP app is available. Set to 80 if you want this to be available on the network.
#[clap(short, long, default_value = "9883", env = "ATOMIC_PORT")]
pub port: u32,
/// The port where the HTTPS app is available
#[clap(long, default_value = "443", env = "ATOMIC_PORT")]
/// The port where the HTTPS app is available. Sert to 443 if you want this to be available on the network.
#[clap(long, default_value = "9884", env = "ATOMIC_PORT_HTTPS")]
pub port_https: u32,
/// The IP address of the server
/// The IP address of the server. Set to 0.0.0.0 if you want this to be available to other devices on your network.
#[clap(long, default_value = "0.0.0.0", env = "ATOMIC_IP")]
pub ip: IpAddr,
/// Use HTTPS instead of HTTP.
Expand Down

0 comments on commit f8486ed

Please sign in to comment.