forked from realaravinth/libmedium
fix: update default source code config param
This commit is contained in:
parent
dcdc2051cc
commit
612001e570
3 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
debug = true
|
debug = true
|
||||||
source_code = "https://github.com/realaravinth/libmedium"
|
source_code = "https://git.batsense.net/realaravinth/libmedium"
|
||||||
#cache = "/var/lib/libmedium"
|
#cache = "/var/lib/libmedium"
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
|
|
|
@ -133,7 +133,7 @@ const INDEX: &str = include_str!("../templates/index.html");
|
||||||
async fn index() -> impl Responder {
|
async fn index() -> impl Responder {
|
||||||
HttpResponse::Ok()
|
HttpResponse::Ok()
|
||||||
.content_type("text/html; charset=utf-8")
|
.content_type("text/html; charset=utf-8")
|
||||||
.body(INDEX)
|
.body(INDEX.replace("SOURCE_CODE_REPLACE", &crate::SETTINGS.source_code))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.proxy.asset")]
|
#[actix_web_codegen_const_routes::get(path = "crate::V1_API_ROUTES.proxy.asset")]
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
href="/@tylerneely/fear-and-loathing-in-lock-free-programming-7158b1cdd50c"
|
href="/@tylerneely/fear-and-loathing-in-lock-free-programming-7158b1cdd50c"
|
||||||
>Demo Article</a
|
>Demo Article</a
|
||||||
>
|
>
|
||||||
| <a href="https://github.com/realaravinth/libmedium">Source Code</a>
|
| <a href="SOURCE_CODE_REPLACE">Source Code</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Reference in a new issue