From f7832774d9da29b8e498bafe02bb31ff94915099 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Thu, 29 Jun 2023 23:59:15 +0100 Subject: [PATCH] cachec change --- Dockerfile | 6 ++++++ .../stirling/software/SPDF/config/CleanUrlInterceptor.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5f540419..b1d91a48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,12 @@ FROM frooodle/stirling-pdf-base:latest RUN mkdir /scripts COPY ./scripts/* /scripts/ +#Install fonts +RUN mkdir /usr/share/fonts/opentype/noto/ +COPY src/main/resources/static/fonts/*.ttf /usr/share/fonts/opentype/noto/ +COPY src/main/resources/static/fonts/*.otf /usr/share/fonts/opentype/noto/ +RUN fc-cache -f -v + # Copy the application JAR file COPY build/libs/*.jar app.jar diff --git a/src/main/java/stirling/software/SPDF/config/CleanUrlInterceptor.java b/src/main/java/stirling/software/SPDF/config/CleanUrlInterceptor.java index d53d9fa2..8262d14f 100644 --- a/src/main/java/stirling/software/SPDF/config/CleanUrlInterceptor.java +++ b/src/main/java/stirling/software/SPDF/config/CleanUrlInterceptor.java @@ -23,7 +23,7 @@ import org.springframework.web.servlet.ModelAndView; public class CleanUrlInterceptor implements HandlerInterceptor { - private static final List ALLOWED_PARAMS = Arrays.asList("lang", "param2", "param3"); + private static final List ALLOWED_PARAMS = Arrays.asList("lang", "endpoint", "endpoints"); @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {