generated from tipragot/rust
Reconnection system using secret for the relay server #46
|
@ -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"]
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue