Skip to content

Instantly share code, notes, and snippets.

@ianpward
Last active September 20, 2017 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianpward/90504955aabc0f39c0eab45ecbdb859f to your computer and use it in GitHub Desktop.
Save ianpward/90504955aabc0f39c0eab45ecbdb859f to your computer and use it in GitHub Desktop.
Config file for Realm Data Adapter
module.exports = {
// Database name
database_name: "<INSERT_PG_DATABASE_NAME>",
// Realm Object Server URL
realm_object_server_url: "realm://<IP_OR_DNS_OF_ROS>:9080",
auth_server_url: "http://<IP_OR_DNS_OF_ROS>:9080",
feature_token: "<FEATURE_TOKEN>",
// Admin token used to talk to ROS - get from ROS output
admin_user_token: "<ADMIN_TOKEN>",
admin_username: "<ADMIN_USER>",
admin_password: "<ADMIN_USER_PASSWORD>",
// The synced Realm path for the data ie. '/myRealm'
target_realm_path: '<URI_OF_REALM>',
// Postgres config used for all connections - replace with your data
postgres_config: {
host: '<POSTGRES_SERVER_IP>',
port: 5432,
user: '<POSTGRES_USER>',
password: '<POSTGRES_PASSWORD>'
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment