Skip to content

Commit

Permalink
Set MetaDataConstants.SECURE_PAGE to "true". Re-activate HTTPS in the…
Browse files Browse the repository at this point in the history
… Dockerfile.

Hopefully, this helps with the issue that the clipboard could not be accessed in JavaScript. This only works on localhost or over a secured connection.
Https was deactivated for testing on localhost.
  • Loading branch information
khituras committed Dec 23, 2022
1 parent c04c13e commit 7e69c22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gepi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ FROM jetty:10.0.9-jre11-slim-openjdk as production
USER root
RUN apt-get update -y && apt-get install -y python3.9 && apt-get install -y python3-pip && pip install pandas==1.3.2 openpyxl==3.0.9 xlsxwriter==3.0.1
USER jetty
#RUN java -jar "$JETTY_HOME/start.jar" --add-modules=ssl,https
RUN java -jar "$JETTY_HOME/start.jar" --add-modules=ssl,https
COPY gepi-webapp/target/gepi-webapp.war /var/lib/jetty/webapps/ROOT.war
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import de.julielab.gepi.webapp.state.GePiSessionState;
import de.julielab.gepi.webapp.state.GePiSessionStateCreator;
import org.apache.tapestry5.ComponentResources;
import org.apache.tapestry5.MetaDataConstants;
import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.commons.MappedConfiguration;
import org.apache.tapestry5.commons.OrderedConfiguration;
Expand Down Expand Up @@ -131,6 +132,10 @@ public static void scheduleJobs(ParallelExecutor pExecutor, PeriodicExecutor exe
executor.addJob(new IntervalSchedule(Duration.ofDays(1).toMillis()), "Temp file deletion job", statisticsCollector);
}

public void contributeMetaDataLocator(MappedConfiguration<String, String> configuration) {
configuration.add(MetaDataConstants.SECURE_PAGE, "true");
}

/**
* This is a service definition, the service will be named "TimingFilter". The interface,
* RequestFilter, is used within the RequestHandler service pipeline, which is built from the
Expand Down

0 comments on commit 7e69c22

Please sign in to comment.