Reconnection system using secret for the relay server #46

Merged
CoCo_Sol merged 7 commits from reconnect into main 2024-02-12 22:41:02 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 03d2b4385a - Show all commits

View file

@ -8,4 +8,5 @@ FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/target/release/relay-server .
EXPOSE 80/tcp
VOLUME [ "/data" ]
CMD ["./relay-server"]

View file

@ -17,7 +17,7 @@ use uuid::Uuid;
lazy_static! {
static ref CLIENTS: DashMap<Uuid, Sender<Vec<u8>>> = DashMap::new();
static ref DB: Db = sled::open("data.db").expect("unable to open the database");
static ref DB: Db = sled::open("/data/secrets.db").expect("unable to open the database");
}
#[tokio::main]