Skip to content
Giovanni Giacobbi edited this page Oct 16, 2020 · 15 revisions

Log File Location

You can change the log file configuration defined in log4j2.xml:

  • You can change the log directory. The default location is $HOME/logs/steve.log. A more suitable location might be /var/log/steve/steve.log (remember to set directory permissions accordingly)
  • You can change the log level
  • You can change the $HOME directory at startup with: java -Duser.home=/another/path, in this case the default log file would be /another/path/logs/steve.log.

Gzip compression

As default, gzip is enabled to return compressed content. But, if you are running SteVe behind a proxy (like NGINX) that is already handling your compression, you should disable it in SteVe.

Multiple interfaces

If your server has multiple network interfaces, using 0.0.0.0 as the [server host] (https://github.com/RWTH-i5-IDSG/steve/blob/master/src/main/resources/config/prod/main.properties#L22) will make the application listen to all interfaces. But this might have security implications.

HTTPS

The basic building blocks to use HTTPS with SteVe are already there. You should enable it in the properties file and change the port if you wish. The main part is the keystore path and password, which have to be set. Java Keystore is a "store" that can hold private keys, certificates, etc. You should create one using the Java Keytool. Here is one tutorial: https://www.digitalocean.com/community/tutorials/java-keytool-essentials-working-with-java-keystores

Clone this wiki locally