Skip to content

MoreTore/connect-killer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an open-source alternative to openpilot connect for use with openpilot software. To see the server in action, go to: https://portal.springerelectronics.com/

Thank you https://springerelectronics.com for hosting!

To get started with hosting your own instance, inspect the docker compose yaml to adjust the volume mount points.

services:
db:
image: postgres:15.3-alpine
restart: unless-stopped
ports:
- 5432:5432
network_mode: "host"
volumes:
- pgdata:/var/lib/postgresql/data
#- ./pgvector:/pgvector
env_file:
- .env
# entrypoint: ["sh", "/pgvector/init_pgvector.sh"]
redis:
image: redis:latest
restart: unless-stopped
ports:
- 6379:6379
network_mode: "host"
minikeyvalue:
build:
context: ./minikeyvalue
dockerfile: Dockerfile
volumes:
- /mnt/raid5/kvstore:/tmp
ports:
- "3000-3005:3000-3005"
network_mode: "host"
restart: unless-stopped
connect:
build: .
restart: unless-stopped
ports:
- "3222:3222"
- "3223:3223"
- "3111:3111"
- "3112:3112"
depends_on:
- db
# - redis
- minikeyvalue
env_file:
- .env
network_mode: "host"
volumes:
- cargo-cache:/usr/local/cargo
volumes:
pgdata:
cargo-cache:
connect-target:
fill out the .env_template and rename it to .env
POSTGRES_DB=connect_development
POSTGRES_USER=loco
POSTGRES_PASSWORD=
DATABASE_URL=postgres://loco:loco@localhost:5432/connect_development
REDIS_URL=redis://redis:6379
MAILER_HOST=mailer
CONNECT_PORT=3111
USERADMIN_PORT=3112
GITHUB_SECRET=
GITHUB_CLIENT=
SERVER_SECRET=
HF_TOKEN=
HF_HUB_ENABLE_HF_TRANSFER=1
MOUNT_POINT=/mnt/raid5
MKV_ENDPOINT=http://localhost:3000
ADMIN_JWT=
API_ENDPOINT=https://api.springerelectronics.com
WS_ENDPOINT=https://api.springerelectronics.com/ws
create openssl keys for your domain and put them into self_signed_certs folder. See here

connect-killer/src/app.rs

Lines 151 to 158 in 4b9be82

let config = RustlsConfig::from_pem_file(
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("self_signed_certs")
.join("cert.pem"),
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("self_signed_certs")
.join("key.pem"),
)
More changes to hard coded values need to be changed to get the frontend working. More work needs to be done to make it easier.

run docker compose up --build