X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fclub%2Fwpia%2Fgigi%2Futil%2FServerConstants.java;h=4e2d9c928fd82d9f173a486b93773dac5b720e7e;hb=3733d7b60da61f55797ec4f390c3c4bbdb4fd4c3;hp=8ff3883cf99f4f923a2b634743d0f1a064edff70;hpb=f9c330aaf4537d80cb6bb4a0734b2fe7fe5c6b89;p=gigi.git diff --git a/src/club/wpia/gigi/util/ServerConstants.java b/src/club/wpia/gigi/util/ServerConstants.java index 8ff3883c..4e2d9c92 100644 --- a/src/club/wpia/gigi/util/ServerConstants.java +++ b/src/club/wpia/gigi/util/ServerConstants.java @@ -5,6 +5,8 @@ import java.util.HashMap; import java.util.Map; import java.util.Properties; +import club.wpia.gigi.ocsp.OCSPResponder; + public class ServerConstants { public enum Host { @@ -35,7 +37,11 @@ public class ServerConstants { * Hosts the certificate repository for the certificates generated * during NRE. Also not served by Gigi. */ - CRT_REPO("g2.crt"); + CRT_REPO("g2.crt"), + /** + * Hosts the {@link OCSPResponder}. + */ + OCSP_RESPONDER("g2.ocsp"); private final String value; @@ -73,7 +79,7 @@ public class ServerConstants { secureBindPort = conf.getProperty("https.bindPort", conf.getProperty("https.port")); bindPort = conf.getProperty("http.bindPort", conf.getProperty("http.port")); - suffix = conf.getProperty("name.suffix", conf.getProperty("name.www", "www.wpia.local").substring(4)); + suffix = conf.getProperty("name.suffix", "wpia.local"); HashMap hostnames = new HashMap<>(); for (Host h : Host.values()) { hostnames.put(h, conf.getProperty("name." + h.getConfigName(), h.getHostDefaultPrefix() + "." + suffix));