-
-
Notifications
You must be signed in to change notification settings - Fork 442
Configuration
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
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.
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.
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