Skip to content

Commit

Permalink
Update default port
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwang401 committed Jan 28, 2024
1 parent 6c2c674 commit 782a18a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ This file is a running track of new features and fixes to each version of the pa

This project follows [Semantic Versioning](http://semver.org) guidelines.

## v2.0.0

### Changes

- Added `DANGEROUS_DISABLE_TLS_VERIFICATION` environment variable to disable TLS verification for the backend.
- Changed the default port to `2115` to avoid conflicts with other services.

## v1.1.0

### Changes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Svelte, Coterm is built for performance, and every millisecond counts.
## Quick start

```
docker run -p 3000:3000 -e CONVOY_URL="<panel url>" -e COTERM_TOKEN="<coterm token>" ghcr.io/convoypanel/coterm:latest
docker run -p 2115:2115 -e CONVOY_URL="<panel url>" -e COTERM_TOKEN="<coterm token>" ghcr.io/convoypanel/coterm:latest
```

The port can be modified by editing the first number to a different value. For example, if you want to broadcast on port
80, you do `...-p 80:3000...`. More information about publishing ports can be
80, you do `...-p 80:2115...`. More information about publishing ports can be
found [here](https://docs.docker.com/network/#published-ports) on the Docker documentation.

## Docker compose
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ services:
cat <<EOF > /etc/caddy/Caddyfile && caddy run --config /etc/caddy/Caddyfile
$$COTERM_URL {
reverse_proxy coterm:3000
reverse_proxy localhost:2115
}
EOF
coterm:
image: ghcr.io/convoypanel/coterm:latest
restart: unless-stopped
ports:
- 127.0.0.1:2115:2115
env_file:
- .env
2 changes: 1 addition & 1 deletion src-rust/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub async fn create_app() -> Router {
.unwrap_or("false".to_string())
.to_lowercase() == "true";
if do_not_verify_tls {
warn!("TLS verification is disabled. This is dangerous and should only be used for testing purposes.\nYou are vulnerable to man-in-the-middle attacks. This is very irresponsible if you are providing this for end users.");
warn!("TLS verification is disabled. This is dangerous and should only be used for testing purposes.\nYou are vulnerable to man-in-the-middle attacks, and this is very irresponsible if you are providing this for end users.");
}

let state = AppState {
Expand Down
2 changes: 1 addition & 1 deletion src-rust/src/util/broadcast_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use tower_http::services::ServeDir;
use tracing::warn;

pub fn get_broadcast_port() -> u16 {
return var("BACKEND_PORT").unwrap_or("3000".to_string()).parse().unwrap();
return var("BACKEND_PORT").unwrap_or("2115".to_string()).parse().unwrap();
}

pub fn create_assets_service() -> ServeDir {
Expand Down

0 comments on commit 782a18a

Please sign in to comment.