Nuo,
right now the server is discovering its own IP upon startup. However,
it sounds reasonable to return configurable base URL. I am just
wondering if that really is enough to support a LB scenario? Do you
need more stuff there?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Sep 20, 2011 at 6:57 PM, Nuo Yan <[email protected]> wrote:
> I access my neo4j server through the REST API. For security purpose, I put
> the neo4j server behind a nginx lb. I'm wondering if there is config entry
> somewhere that I can set the neo4j server to return a customized base uri
> that I can set to my LB's uri.
>
> For example, currently creating a node by POSTing to the lb (say
> https://10.0.0.1/db/data) returns
>
> {
>  "outgoing_relationships" : "
> http://neo4j/db/data/node/160/relationships/out";,
>  "data" : {
>  },
>  "traverse" : "http://neo4j/db/data/node/160/traverse/{returnType}";,
>  "all_typed_relationships" : "
> http://neo4j/db/data/node/160/relationships/all/{-list|&|types}",
>  "property" : "http://neo4j/db/data/node/160/properties/{key}";,
>  "self" : "http://neo4j/db/data/node/160";,
>  "properties" : "http://neo4j/db/data/node/160/properties";,
>  "outgoing_typed_relationships" : "
> http://neo4j/db/data/node/160/relationships/out/{-list|&|types}",
>  "incoming_relationships" : "http://neo4j/db/data/node/160/relationships/in
> ",
>  "extensions" : {
>  },
>  "create_relationship" : "http://neo4j/db/data/node/160/relationships";,
>  "paged_traverse" : "
> http://neo4j/db/data/node/160/paged/traverse/{returnType}{?pageSize,leaseTime}
> ",
>  "all_relationships" : "http://neo4j/db/data/node/160/relationships/all";,
>  "incoming_typed_relationships" : "
> http://neo4j/db/data/node/160/relationships/in/{-list|&|types}"
>
>
> Is there a config on the neo4j server that I can set to make it either
> return the lb URI "https://10.0.0.1"; as the base uri or return relative path
> in the result?
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to