fix: update default source code config param

This commit is contained in:
Aravinth Manivannan 2024-04-13 06:50:33 +05:30
parent dcdc2051cc
commit 612001e570
Signed by untrusted user: realaravinth
GPG key ID: F8F50389936984FF
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
debug = true
source_code = "https://github.com/realaravinth/libmedium"
source_code = "https://git.batsense.net/realaravinth/libmedium"
#cache = "/var/lib/libmedium"
[server]

View file

@ -133,7 +133,7 @@ const INDEX: &str = include_str!("../templates/index.html");
async fn index() -> impl Responder {
HttpResponse::Ok()
.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")]

View file

@ -15,7 +15,7 @@
href="/@tylerneely/fear-and-loathing-in-lock-free-programming-7158b1cdd50c"
>Demo Article</a
>
| <a href="https://github.com/realaravinth/libmedium">Source Code</a>
| <a href="SOURCE_CODE_REPLACE">Source Code</a>
</p>
</div>
</main>