<!-- the routers's name on the network -->
<router_name>router</router_name>
- <!--
- These are the services that the gateway will serve.
- Any other requests will receive an HTTP_NOT_FOUND (404)
- DO NOT put any services here that you don't want the internet to have access to
- This section will be soon deprecated for multi-domain mode...
- -->
- <services>
- <service>opensrf.math</service>
- </services>
-
<!-- jabber login info -->
-
<!-- The gateway connects to the public domain -->
<domain>public.localhost</domain>
<username>opensrf</username>
char* osrf_json_gateway_config_file = NULL;
int bootstrapped = 0;
int numserved = 0;
-osrfStringArray* allowedServices = NULL;
static const char* osrf_json_gateway_set_default_locale(cmd_parms *parms, void *config, const char *arg) {
if (arg)
}
bootstrapped = 1;
- allowedServices = osrfNewStringArray(8);
osrfLogInfo(OSRF_LOG_MARK, "Bootstrapping gateway child for requests");
- osrfConfigGetValueList( NULL, allowedServices, "/services/service" );
-
- int i;
- for( i = 0; i < allowedServices->size; i++ ) {
- ap_log_error( APLOG_MARK, APLOG_DEBUG, 0, s,
- "allowed service: %s\n", osrfStringArrayGetString(allowedServices, i));
- }
// when this pool is cleaned up, it means the child
// process is going away. register some cleanup code
/* ----------------------------------------------------------------- */
- if(!(service && method) ||
- !osrfStringArrayContains(allowedServices, service)) {
+ if(!(service && method)) {
osrfLogError(OSRF_LOG_MARK,
"Service [%s] not found or not allowed", service);