My personal site cherry.computer
htmx tailwind axum askama

feat: call Last.fm using TLS

Need to install root certificates to authenticate their cert now.

+4 -2
+3 -1
Dockerfile
··· 18 # run on different image 19 FROM debian:buster-slim 20 21 - RUN apt-get update && apt-get install -y openssl && rm -rf /var/lib/apt/lists/* 22 23 WORKDIR /root 24
··· 18 # run on different image 19 FROM debian:buster-slim 20 21 + RUN apt-get update \ 22 + && apt-get install -y openssl ca-certificates \ 23 + && rm -rf /var/lib/apt/lists/* 24 25 WORKDIR /root 26
+1 -1
server/src/scrobble_monitor.rs
··· 61 async fn fetch_scrobble(&self) -> anyhow::Result<String> { 62 let response = self 63 .client 64 - .get("http://ws.audioscrobbler.com/2.0") 65 .query(&[ 66 ("method", "user.getRecentTracks"), 67 ("api_key", &self.api_key),
··· 61 async fn fetch_scrobble(&self) -> anyhow::Result<String> { 62 let response = self 63 .client 64 + .get("https://ws.audioscrobbler.com/2.0") 65 .query(&[ 66 ("method", "user.getRecentTracks"), 67 ("api_key", &self.api_key),