From ffc62574ecccec6cb1fb3b4fd1335591d2445178 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 15 Jan 2021 18:57:12 +0000 Subject: [PATCH] Fix server push and use Link header to load CSS Nginx with http2_push_preload on will convert the Link header to server pushes, so we use it to load css. --- README.md | 1 + config/config-base.json | 2 +- html/admin.html | 1 - views.go | 39 +++++++++++++++++++++++++++++++-------- 4 files changed, 33 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1a9c645..d2b3ade 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ For [docker](https://hub.docker.com/repository/docker/hrfee/jfa-go), run: docker create \ --name "jfa-go" \ # Whatever you want to name it -p 8056:8056 \ + # -p 8057:8057 if using tls -v /path/to/.config/jfa-go:/data \ # Path to wherever you want to store the config file and other data -v /path/to/jellyfin:/jf \ # Path to jellyfin config directory -v /etc/localtime:/etc/localtime:ro \ # Makes sure time is correct diff --git a/config/config-base.json b/config/config-base.json index 902f056..ad72b6d 100644 --- a/config/config-base.json +++ b/config/config-base.json @@ -232,7 +232,7 @@ "requires_restart": true, "type": "bool", "value": false, - "description": "Enable TLS, and by extension HTTP2. This enables server push, where required files are pushed to the web browser before they request them, allowing quicker page loads." + "description": "Enable TLS." }, "tls_port": { "name": "TLS Port", diff --git a/html/admin.html b/html/admin.html index 2a94c48..1fea414 100644 --- a/html/admin.html +++ b/html/admin.html @@ -2,7 +2,6 @@ -