Skip to content

Commit

Permalink
cachec change
Browse files Browse the repository at this point in the history
  • Loading branch information
Frooodle committed Jun 29, 2023
1 parent 279d25c commit f783277
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
public class CleanUrlInterceptor implements HandlerInterceptor {


private static final List<String> ALLOWED_PARAMS = Arrays.asList("lang", "param2", "param3");
private static final List<String> ALLOWED_PARAMS = Arrays.asList("lang", "endpoint", "endpoints");

@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
Expand Down

0 comments on commit f783277

Please sign in to comment.