From 7a9bdba6bbd42d2a4e39d5ea3067105c030cedd2 Mon Sep 17 00:00:00 2001 From: Milan Unger <30626125+milung@users.noreply.github.com> Date: Tue, 23 Aug 2022 21:04:02 +0200 Subject: [PATCH] BASE href, config.json, and cache-control (#5) * added support for base-href, config.json, and cache-control * added support for base-href, config.json and cache-control * handling of woff mime types Co-authored-by: Milan Unger --- Dockerfile | 2 +- README.md | 5 +++++ go.mod | 2 +- main.go | 39 ++++++++++++++++++++++++++++++++++++--- 4 files changed, 43 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab9c25f..7df3f98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.18-alpine as builder +FROM golang:1.18 as builder LABEL maintainer="donato@wolfisberg.dev" WORKDIR /app diff --git a/README.md b/README.md index 221a65d..3319fc5 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,13 @@ The following options can be configured through environment variables. | READ_TIMEOUT_SECONDS | 5 | | WRITE_TIMEOUT_SECONDS | 10 | | IDLE_TIMEOUT_SECONDS | 120 | +| BASE_HREF | / | +| CONFIG_JSON | {} | +* `BASE_HREF` is used to replace the `href` content in the `index.html`'s string `