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 {