Add some patches for the images

This commit is contained in:
Aaron Fischer 2022-08-03 23:06:16 +02:00
parent fab9e31aea
commit d24f3b618b
Signed by: f
GPG key ID: 91E0B20B3853F1B9
2 changed files with 30 additions and 2 deletions

View file

@ -9,9 +9,12 @@ WORKDIR /build
COPY ./localhost.cnf /build/localhost.cnf COPY ./localhost.cnf /build/localhost.cnf
RUN git clone https://code.rocketnine.space/tslocum/twins.git RUN git clone https://code.rocketnine.space/tslocum/twins.git
# Apply a needed patch RUN git config --global user.email "noname@example.com"
# Apply a needed patches
COPY ./path-10.patch /build/path-10.patch COPY ./path-10.patch /build/path-10.patch
RUN cd /build/twins && patch /build/path-10.patch RUN cd /build/twins && git am /build/path-10.patch
COPY ./activate-images-permanently.patch /build/activate-images-permanently.patch
RUN cd /build/twins && git am /build/activate-images-permanently.patch
RUN cd /build/twins && go build RUN cd /build/twins && go build

View file

@ -0,0 +1,25 @@
From abedd294bcae5c17cd2ecf89e1129817182f91a8 Mon Sep 17 00:00:00 2001
From: Aaron Fischer <mail@aaron-fischer.net>
Date: Thu, 22 Jul 2021 22:39:47 +0200
Subject: [PATCH] Quick and dirty image activation
Signed-off-by: Aaron Fischer <mail@aaron-fischer.net>
---
serve_https.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/serve_https.go b/serve_https.go
index e75e6aa..82bbf4b 100644
--- a/serve_https.go
+++ b/serve_https.go
@@ -17,6 +17,7 @@ import (
var cssBytes = []byte(gmitohtml.StyleCSS)
func serveHTTPS(w http.ResponseWriter, r *http.Request) (int, int64, string) {
+ gmitohtml.Config.ConvertImages = true
if r.URL.Path == "" {
// Redirect to /
u, err := url.Parse(r.URL.String())
--
2.32.0