diff --git a/CHANGELOG.md b/CHANGELOG.md index 03219aa..002efd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index ae63d75..298164c 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,11 @@ Svelte, Coterm is built for performance, and every millisecond counts. ## Quick start ``` -docker run -p 3000:3000 -e CONVOY_URL="" -e COTERM_TOKEN="" ghcr.io/convoypanel/coterm:latest +docker run -p 2115:2115 -e CONVOY_URL="" -e 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 diff --git a/docker-compose.example.yml b/docker-compose.example.yml index b001e5b..b230456 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -14,12 +14,14 @@ services: cat < /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 diff --git a/src-rust/src/app.rs b/src-rust/src/app.rs index d91a2a1..e9955cd 100644 --- a/src-rust/src/app.rs +++ b/src-rust/src/app.rs @@ -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 { diff --git a/src-rust/src/util/broadcast_config.rs b/src-rust/src/util/broadcast_config.rs index 8e3072b..ac7c5d8 100644 --- a/src-rust/src/util/broadcast_config.rs +++ b/src-rust/src/util/broadcast_config.rs @@ -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 {