You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Configuration is defined in [main.properties](src/main/resources/config/prod/main.properties):
28
-
- You _must_ change [database configuration](src/main/resources/config/prod/main.properties#L3-L7)
29
-
- You _must_ change [the host](src/main/resources/config/prod/main.properties#L16) to the correct IP address of your server
30
-
- You _must_ change [web interface credentials](src/main/resources/config/prod/main.properties#L11-L12)
31
-
- You _can_ access the application via HTTPS, by [enabling it and setting the keystore properties](src/main/resources/config/prod/main.properties#L25-L28)
32
-
33
-
4. The following MySQL statements can be used as database initialization (adjust according to your setup):
27
+
3. The following MySQL statements can be used as database initialization (adjust according to your setup):
34
28
35
29
```
36
30
CREATE DATABASE stevedb;
37
31
GRANT ALL PRIVILEGES ON stevedb.* TO 'steve'@'localhost' IDENTIFIED BY 'changeme';
38
32
GRANT SELECT ON mysql.proc TO 'steve'@'localhost' IDENTIFIED BY 'changeme';
39
33
```
40
34
35
+
4. Basic Configuration is defined in [main.properties](src/main/resources/config/prod/main.properties):
36
+
- You _must_ change [database configuration](src/main/resources/config/prod/main.properties#L3-L7)
37
+
- You _must_ change [the host](src/main/resources/config/prod/main.properties#L16) to the correct IP address of your server. Using `0.0.0.0` to bind to all Interfaces should work as well, but might have security implications
38
+
- You _must_ change [web interface credentials](src/main/resources/config/prod/main.properties#L11-L12)
39
+
- You _can_ access the application via HTTPS, by [enabling it and setting the keystore properties](src/main/resources/config/prod/main.properties#L25-L28)
40
+
41
+
5. Log File Configuration is defined in [log4j2.xml](src/main/resources/config/prod/log4j2.xml):
42
+
- You _can_ change the [log directory](src/main/resources/config/prod/log4j2.xml#L10).
43
+
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)
44
+
- You _can_ change the [log level](src/main/resources/config/prod/log4j2.xml#L28)
45
+
41
46
How to use?
42
47
-----
43
48
44
49
Compile and build an archive ready to run:
45
50
46
51
mvn package
47
52
48
-
Start the application:
53
+
Start the application (please do not run SteVe as root):
0 commit comments