Skip to content

Commit

Permalink
Remove restserver.protocol option (apache#1272)
Browse files Browse the repository at this point in the history
Change-Id: I57a90e5a3254e22f29243beebf81751182d15534
  • Loading branch information
Linary authored and tmljob committed Dec 10, 2020
1 parent 06b89f7 commit bf80fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ public static synchronized ServerOptions instance() {
"http://127.0.0.1:8080"
);

public static final ConfigOption<String> REST_SERVER_PROTOCOL =
new ConfigOption<>(
"restserver.protocol",
"The protocol of rest-server, allowed values are: " +
"http or https.",
allowValues("http", "https"),
"http"
);

public static final ConfigOption<String> SERVER_ID =
new ConfigOption<>(
"server.id",
Expand Down Expand Up @@ -237,7 +228,7 @@ public static synchronized ServerOptions instance() {
"The path of server keystore file used when https " +
"protocol is enabled.",
disallowEmpty(),
"hugegraph-server.keystore"
"conf/hugegraph-server.keystore"
);

public static final ConfigOption<String> SSL_KEYSTORE_PASSWORD =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void start() throws IOException {
}

private HttpServer configHttpServer(URI uri, ResourceConfig rc) {
String protocol = this.conf.get(ServerOptions.REST_SERVER_PROTOCOL);
String protocol = uri.getScheme();
final HttpServer server;
if (protocol != null && protocol.equals("https")) {
SSLContextConfigurator sslContext = new SSLContextConfigurator();
Expand Down

0 comments on commit bf80fc6

Please sign in to comment.