Add some patches for the images
This commit is contained in:
parent
fab9e31aea
commit
d24f3b618b
2 changed files with 30 additions and 2 deletions
|
@ -9,9 +9,12 @@ WORKDIR /build
|
|||
COPY ./localhost.cnf /build/localhost.cnf
|
||||
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
|
||||
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
|
||||
|
||||
|
|
25
activate-images-permanently.patch
Normal file
25
activate-images-permanently.patch
Normal 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
|
||||
|
Loading…
Reference in a new issue