54272bba7077be7d75019ddedb1befda50513af9
java/com.sap.sse.gwt/src/com/sap/sse/gwt/client/ServerInfoDTO.java
| ... | ... | @@ -13,6 +13,9 @@ public class ServerInfoDTO extends NamedSecuredObjectDTO implements IsSerializab |
| 13 | 13 | |
| 14 | 14 | private String buildVersion; |
| 15 | 15 | |
| 16 | + /** |
|
| 17 | + * Eventmanagement base URL. |
|
| 18 | + */ |
|
| 16 | 19 | private String manageEventsBaseUrl; |
| 17 | 20 | |
| 18 | 21 | // for GWT |
java/com.sap.sse/src/com/sap/sse/ServerInfo.java
| ... | ... | @@ -30,7 +30,11 @@ public class ServerInfo { |
| 30 | 30 | public static String getName() { |
| 31 | 31 | return ServerStartupConstants.SERVER_NAME; |
| 32 | 32 | } |
| 33 | - |
|
| 33 | + /** |
|
| 34 | + * Retrieve event management base URL from server startup configuration. |
|
| 35 | + * @return the base URL. |
|
| 36 | + * @see ServerStartupConstants#MANAGE_EVENTS_URL |
|
| 37 | + */ |
|
| 34 | 38 | public static String getManageEventsBaseUrl() { |
| 35 | 39 | return ServerStartupConstants.MANAGE_EVENTS_URL; |
| 36 | 40 | } |
java/com.sap.sse/src/com/sap/sse/ServerStartupConstants.java
| ... | ... | @@ -3,5 +3,8 @@ package com.sap.sse; |
| 3 | 3 | public interface ServerStartupConstants { |
| 4 | 4 | final static String SERVER_NAME = System.getProperty("com.sap.sailing.server.name", "unknown server name"); |
| 5 | 5 | final static String JETTY_HOME = System.getProperty("jetty.home"); |
| 6 | + /** |
|
| 7 | + * Reads the event management URL from system property {@code com.sap.sailing.eventmanagement.url} that can be specified during start up. |
|
| 8 | + */ |
|
| 6 | 9 | final static String MANAGE_EVENTS_URL = System.getProperty("com.sap.sailing.eventmanagement.url", "https://my.sapsailing.com"); |
| 7 | 10 | } |
java/target/env.sh
| ... | ... | @@ -164,6 +164,9 @@ else |
| 164 | 164 | fi |
| 165 | 165 | ADDITIONAL_JAVA_ARGS="$JAVA_VERSION_SPECIFIC_ARGS $ADDITIONAL_JAVA_ARGS -Dpersistentcompetitors.clear=false -Drestore.tracked.races=true -Dpolardata.source.url=https://www.sapsailing.com -Dwindestimation.source.url=https://www.sapsailing.com -XX:MaxGCPauseMillis=500" |
| 166 | 166 | |
| 167 | +# Custom event management URL: use -Dcom.sap.sailing.eventmanagement.url to modify hardcoded default, e.g https://dev.sapsailing.com |
|
| 168 | +#ADDITIONAL_JAVA_ARGS="$ADDITIONAL_JAVA_ARGS -Dcom.sap.sailing.eventmanagement.url=https://dev.sapsailing.com" |
|
| 169 | + |
|
| 167 | 170 | # To enable the use of the shared SecurityService and SharedSailingData from security-service.sapsailing.com, uncomment and fill in the following: |
| 168 | 171 | #ADDITIONAL_JAVA_ARGS="$ADDITIONAL_JAVA_ARGS -Dsecurity.sharedAcrossSubdomainsOf=sapsailing.com -Dsecurity.baseUrlForCrossDomainStorage=https://security-service.sapsailing.com -Dgwt.acceptableCrossDomainStorageRequestOriginRegexp=https?://(.*\.)?sapsailing\.com(:[0-9]*)?$" |
| 169 | 172 | #REPLICATE_ON_START=com.sap.sse.security.impl.SecurityServiceImpl,com.sap.sailing.shared.server.impl.SharedSailingDataImpl |
wiki/info/landscape/amazon-ec2.md
| ... | ... | @@ -131,6 +131,7 @@ To set up a multi instance for a server with name "SSV", subdomain "ssv.sapsaili |
| 131 | 131 | <pre> |
| 132 | 132 | # JAVA_HOME=/opt/jdk1.8.0_20 |
| 133 | 133 | </pre> |
| 134 | + Optional: setup event management URL by setting <pre>com.sap.sailing.eventmanagement.url</pre> system property. See ADDITIONAL_JAVA_ARGS at <pre>env.sh</pre>. |
|
| 134 | 135 | |
| 135 | 136 | 8. Find the next unused ports for the variables SERVER_PORT, TELNET_PORT and EXPEDITION_PORT. You can do this by extracting all existing variable assignments from all env.sh files within the /home/sailing/servers directory. |
| 136 | 137 |