Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion avaje-jex/src/main/java/io/avaje/jex/AvajeJex.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static Server start(BeanScope beanScope) {
JexConfig config = jex.config();
config.port(Config.getInt("server.port", config.port()));
config.contextPath(Config.get("server.context.path", config.contextPath()));
config.host(Config.get("server.context.host", config.host()));
config.host(Config.getNullable("server.context.host", config.host()));

return jex.start();
}
Expand Down
2 changes: 2 additions & 0 deletions avaje-jex/src/main/java/io/avaje/jex/DJex.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import io.avaje.jex.core.BootstrapServer;
import io.avaje.jex.spi.*;
import com.sun.net.httpserver.HttpsConfigurator;
import com.sun.net.httpserver.spi.HttpServerProvider;

import java.util.*;
import java.util.function.Consumer;
Expand Down Expand Up @@ -57,6 +58,7 @@ public Jex configureWith(BeanScope beanScope) {
routing.addAll(beanScope.list(Routing.HttpService.class));
beanScope.getOptional(JsonService.class).ifPresent(this::jsonService);
beanScope.getOptional(HttpsConfigurator.class).ifPresent(config()::httpsConfig);
beanScope.getOptional(HttpServerProvider.class).ifPresent(config()::serverProvider);
return this;
}

Expand Down