generated from tipragot/rust
Reconnection system using secret for the relay server #46
|
@ -8,4 +8,5 @@ FROM alpine:latest
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app/target/release/relay-server .
|
COPY --from=builder /app/target/release/relay-server .
|
||||||
EXPOSE 80/tcp
|
EXPOSE 80/tcp
|
||||||
|
VOLUME [ "/data" ]
|
||||||
CMD ["./relay-server"]
|
CMD ["./relay-server"]
|
|
@ -17,7 +17,7 @@ use uuid::Uuid;
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref CLIENTS: DashMap<Uuid, Sender<Vec<u8>>> = DashMap::new();
|
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]
|
#[tokio::main]
|
||||||
|
|
Loading…
Reference in a new issue