{"__v":4,"_id":"562c2e6eff2da50d002c0ac5","category":{"__v":12,"_id":"559d8d96980b801700d5ec7e","pages":["559d9044ac6a3d2100e0a5c3","559dbe8bd41e4e0d001583c9","55c3d384afefb00d00727e97","55fc62332891ee1900e039aa","562276ef06481c0d00e5313a","562c2e6eff2da50d002c0ac5","5640ecf4a6a9e90d008d80e8","56ce135449abf10b0036a3a9","56ce160ae538330b0021ac39","56ce165249abf10b0036a3b3","56ce22c249abf10b0036a3e0","56cedc006c5d7a13005ee779"],"project":"552829408962f339009a678d","version":"552829408962f339009a6790","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-08T20:52:38.999Z","from_sync":false,"order":7,"slug":"actor-server","title":"Manual Server Installation"},"parentDoc":null,"project":"552829408962f339009a678d","user":"55282916d9e1db2d00cd923c","version":{"__v":26,"_id":"552829408962f339009a6790","project":"552829408962f339009a678d","createdAt":"2015-04-10T19:49:20.516Z","releaseDate":"2015-04-10T19:49:20.516Z","categories":["552829418962f339009a6791","55284ed68962f339009a67e1","55286c73391a362500d9b3f4","552918f6b316811900149f59","5529b255d739240d00a3483e","553287590a578a0d008d4ff5","55329385e7d1fa0d003fc946","5550b55200420e0d00d1312f","55525fca953c9c0d00f507d7","559199695631432f002d358a","559d8d96980b801700d5ec7e","55c5e833cccdeb2d004e24b9","55d76504f662951900fc0e7d","55ea213cc62aa02f008229cd","56157b750f5ed00d00483dd8","561981fbac0924170069f4e8","561b8b1ea430930d0037ea67","563417428b86331700b488ca","56cd785bface161300dae0ec","56cdcc6e70db8a15006395f4","56cdf1b749abf10b0036a34a","56cedc8ce50c9c1b00830423","56e97ba8d825061900d1ac83","570d505228e6900e00477229","573614ca2ab52e1700c8e851","57d556a2496a3117004d70cf"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-10-25T01:20:46.273Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"By default Actor server opens three endpoints:\n\n1. Mobile API endpoint on 9070 port.\n2. Web API endpoint on 9080 port.\n3. Http API endpoint on 9090 port.\n\nAll of them listen on all available interfaces (0.0.0.0).\n\nIf you didn't set up a reverse proxy with TLS in front of server for secure connection, you should configure clients to use endpoints like this: \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"tcp://server-ip:9070 // mobile clients\\nws://server-ip:9080 // web client\\nhttp://server-ip:9090 // http api\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nWhen you set up reverse proxy,  set up TLS only for web API and Http API endpoints, and configure simple proxy without TLS for Mobile API endpoint. Configure clients to use following endpoints:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"tcp://proxy-ip:port // mobile clients\\nwss://proxy-ip:port // web clients\\nhttps://proxy-ip:port // http api\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"endpoints","type":"basic","title":"Endpoints"}
By default Actor server opens three endpoints: 1. Mobile API endpoint on 9070 port. 2. Web API endpoint on 9080 port. 3. Http API endpoint on 9090 port. All of them listen on all available interfaces (0.0.0.0). If you didn't set up a reverse proxy with TLS in front of server for secure connection, you should configure clients to use endpoints like this: [block:code] { "codes": [ { "code": "tcp://server-ip:9070 // mobile clients\nws://server-ip:9080 // web client\nhttp://server-ip:9090 // http api", "language": "text" } ] } [/block] When you set up reverse proxy, set up TLS only for web API and Http API endpoints, and configure simple proxy without TLS for Mobile API endpoint. Configure clients to use following endpoints: [block:code] { "codes": [ { "code": "tcp://proxy-ip:port // mobile clients\nwss://proxy-ip:port // web clients\nhttps://proxy-ip:port // http api", "language": "text" } ] } [/block]