Compare commits
No commits in common. "65b92f85325ae17daa12077407066002af4e05fc" and "7d5852efdd8e67a69959970219b2fa287ccfff86" have entirely different histories.
65b92f8532
...
7d5852efdd
3 changed files with 2 additions and 19 deletions
|
@ -1,5 +1,2 @@
|
||||||
# KOreader Sync Server
|
# KOreader Sync Server
|
||||||
This is a KOreader sync server, implemented in Rust.
|
This is an experimental KOreader sync server, implemented in Rust.
|
||||||
|
|
||||||
## Installation
|
|
||||||
Just compile it with `cargo build --release`. You can then copy the executable for example to `/usr/local/bin/`. If you want to start the service automatically, you can adopt the example systemd file for your needs. You can also use nginx as a reverse proxy, so that the sync server listens on port 443.
|
|
|
@ -1,14 +0,0 @@
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
server_name kosync.example.com;
|
|
||||||
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
|
|
||||||
|
|
||||||
access_log /var/log/nginx/kosync_access.log;
|
|
||||||
error_log /var/log/nginx/kosync_error.log;
|
|
||||||
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_pass http://localhost:3003;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -49,7 +49,7 @@ async fn main() {
|
||||||
.route("/healthcheck", get(healthcheck));
|
.route("/healthcheck", get(healthcheck));
|
||||||
|
|
||||||
// run it with hyper on localhost:3000
|
// run it with hyper on localhost:3000
|
||||||
axum::Server::bind(&"127.0.0.1:3003".parse().unwrap())
|
axum::Server::bind(&"0.0.0.0:3003".parse().unwrap())
|
||||||
.serve(app.into_make_service())
|
.serve(app.into_make_service())
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Reference in a new issue