in src/main/java/org/apache/freemarker/onlinetester/dropwizard/FreeMarkerOnlineTester.java [65:89]
public void initialize(Bootstrap<FreeMarkerOnlineTesterConfiguration> bootstrap) {
bootstrap.addBundle(new ViewBundle<FreeMarkerOnlineTesterConfiguration>() {
@Override
public Map<String, Map<String, String>> getViewConfiguration(FreeMarkerOnlineTesterConfiguration config) {
return config.getViewRendererConfiguration();
}
});
bootstrap.addBundle(new SslReloadBundle());
bootstrap.addBundle(new ConfiguredAssetsBundle(
ImmutableMap.of(
"/assets/", "/assets/", // css, js, images...
"/override-me/", "/.well-known/acme-challenge/" // Map to a file outside the jar in the yml!
)));
bootstrap.addBundle(new RedirectBundle(
new UriRedirect(
"http://freemarker-online.kenshoo.com(?::\\d+)?(/.*)$",
"https://try.freemarker.apache.org$1"),
new UriRedirect(
"http://try.freemarker.org(?::\\d+)?(/.*)$",
"https://try.freemarker.apache.org$1"),
new UriRedirect(
"http://try.freemarker.apache.org((:\\d+)?/(?!\\.well-known/acme-challenge/).*)$",
"https://try.freemarker.apache.org$1")
));
}