Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
Also removed SSL config because it didn't make sense here.
  • Loading branch information
e3ndr committed Jan 17, 2025
1 parent 0543047 commit 843e287
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 72 deletions.
6 changes: 3 additions & 3 deletions server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,20 @@
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.44.0.0</version>
<version>3.48.0.0</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>co.casterlabs</groupId>
<artifactId>Rakurai-Http-Server</artifactId>
<version>2.0.3</version>
<version>2.1.8</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>co.casterlabs</groupId>
<artifactId>Rson</artifactId>
<version>1.17.9</version>
<version>1.18.0</version>
<scope>compile</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/co/casterlabs/dbohttp/Bootstrap.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private static void reload() throws IOException {

// Start the daemon if necessary.
if (DBOHTTP.daemon == null) {
DBOHTTP.daemon = new Daemon(config.port, config.ssl);
DBOHTTP.daemon = new Daemon(config.port);
DBOHTTP.daemon.open();
} else {
if (DBOHTTP.config.port != config.port) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
public class Config {
public boolean debug = false;
public int port = 10243;
public @Nullable SSLConfig ssl = null;

public DatabaseConfig database = new DatabaseConfig();

Expand Down
59 changes: 0 additions & 59 deletions server/src/main/java/co/casterlabs/dbohttp/config/SSLConfig.java

This file was deleted.

11 changes: 3 additions & 8 deletions server/src/main/java/co/casterlabs/dbohttp/daemon/Daemon.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.auth0.jwt.exceptions.JWTVerificationException;

import co.casterlabs.dbohttp.DBOHTTP;
import co.casterlabs.dbohttp.config.SSLConfig;
import co.casterlabs.dbohttp.database.QueryException;
import co.casterlabs.dbohttp.database.QueryResult;
import co.casterlabs.rakurai.json.Rson;
Expand All @@ -36,14 +35,10 @@ public class Daemon implements Closeable, HttpListener {

public final HttpServer server;

public Daemon(int port, @Nullable SSLConfig ssl) {
public Daemon(int port) {
HttpServerBuilder builder = new HttpServerBuilder()
.setBehindProxy(true)
.setPort(port);

if (ssl != null) {
builder.setSsl(ssl.toRHS());
}
.withBehindProxy(true)
.withPort(port);

this.server = builder.build(this);
}
Expand Down

0 comments on commit 843e287

Please sign in to comment.