-
Notifications
You must be signed in to change notification settings - Fork 30
Admin Server Configuration
Allen Tang edited this page Jun 9, 2014
·
9 revisions
New Features of the Admin Server under construction:
- Configuration from multiple sources (TDM or file based config)
- Additional validation and workflow support
- Support for File Server vs S3 storage
- Configuration of menu options (show/hide)
Create /var/lib/obanyc/config.json
{
"oba":{
"env":"local",
"config":"local"
},
"config":[
{
"component":"tdm",
"key":"minimumValue",
"value":"false"
},
{
"component":"admin",
"key":"useTdm",
"value":"false"
},
{
"component":"admin",
"key":"bundleStagingDir",
"value":"/var/lib/obanyc/bundles/staged"
},
{
"component":"admin",
"key":"showApiKey",
"value":"false"
},
{
"component":"admin",
"key":"showManageUsers",
"value":"false"
},
{
"component":"admin",
"key":"showBundleUtil",
"value":"true"
},
{
"component":"admin",
"key":"showVehicleStatus",
"value":"false"
},
{
"component":"admin",
"key":"showUpdateConfig",
"value":"false"
},
{
"component":"admin",
"key":"showQrCode",
"value":"false"
},
{
"component":"admin",
"key":"no_default_agency",
"value":"true"
},
{
"component":"admin",
"key":"1_modurl",
"value":"https://raw.github.com/wiki/camsys/onebusaway-application-modules/KingCountyMetroModifications.mediawiki"
},
{
"component":"admin",
"key":"3_modurl",
"value":"https://raw.github.com/wiki/camsys/onebusaway-application-modules/PierceTransitModifications.mediawiki"
},
{
"component":"admin",
"key":"19_modurl",
"value":"https://raw.github.com/wiki/camsys/onebusaway-application-modules/IntercityTransitModifications.mediawiki"
},
{
"component":"admin",
"key":"29_modurl",
"value":"https://raw.github.com/wiki/camsys/onebusaway-application-modules/CommunityTransitModifications.md"
},
{
"component":"admin",
"key":"40_modurl",
"value":"https://raw.github.com/wiki/camsys/onebusaway-application-modules/SoundTransitModifications.mediawiki"
},
{
"component":"admin",
"key":"1_transform",
"value":"{\"op\":\"transform\",\"class\":\"org.onebusaway.king_county_metro_gtfs.transformations.KingCountyMetroStrategy\",\"base_url\":\"https://raw.github.com/wiki/camsys/onebusaway-application-modules\",\"path\":\":path\"}"
},
{
"component":"admin",
"key":"otpNotificationUrl",
"value":"http://google.com?id=:uuid"
},
{
"component":"agency",
"key":"1",
"value":"KCM,1;EOS,23;SoundTransit,40"
},
{
"component":"agency",
"key":"3",
"value":"PT,3;PierceTransit,3;SoundTransit,40"
},
{
"component":"agency",
"key":"19",
"value":"IntercityTransit,19"
},
{
"component":"agency",
"key":"29",
"value":"29,29"
},
{
"component":"agency",
"key":"40",
"value":"SoundTransit,40"
},
{
"component":"agency",
"key":"99",
"value":"A01,99"
}
]
}
Add this to your context.xml
<Resource name="jdbc/appDB"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="root"
password="changeme"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/onebusaway_nyc" />
<Resource name="jdbc/archiveDB"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="root"
password="changeme"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/onebusaway_nyc_archive" />
<Parameter name="obanyc.environment" value="dev" override="false" />
<Parameter name="admin.instanceId" value="localhost" override="false" />
<Parameter name="file.bundle.bucketName" value="/var/lib/obanyc/st_bundles" override="false" />
<Parameter name="obanyc.resource" value="onebusaway-sound" override="false" />