David K. Bainbridge | 49b75ef | 2016-08-24 15:24:15 -0700 | [diff] [blame] | 1 | <IfModule proxy_module> |
| 2 | ProxyPreserveHost on |
| 3 | |
| 4 | # Map /fabric to the onos instance that is controlling the leaf |
| 5 | # spine fabric |
| 6 | <Location /fabric/> |
| 7 | ProxyPass http://onos-fabric:8181/ |
| 8 | ProxyPassReverse http://onos-fabric:8181/ |
| 9 | ProxyPassReverseCookiePath "/" "/fabric/" |
| 10 | Header edit Location "(^http[s]?://[^/]*)(\.*)" "$1/fabric$2" |
| 11 | </Location> |
David K. Bainbridge | 49b75ef | 2016-08-24 15:24:15 -0700 | [diff] [blame] | 12 | <Location /fabric/onos/ui/websock/> |
| 13 | ProxyPass "ws://onos-fabric:8181/onos/ui/websock/" disablereuse=on |
| 14 | </Location> |
| 15 | |
Zack Williams | 275e48b | 2017-03-24 12:16:00 -0700 | [diff] [blame] | 16 | # kibana/elasticsearch |
| 17 | <Location /kibana> |
| 18 | ProxyPass http://localhost:5601 |
| 19 | ProxyPassReverse http://localhost:5601 |
| 20 | </Location> |
| 21 | |
David K. Bainbridge | 49b75ef | 2016-08-24 15:24:15 -0700 | [diff] [blame] | 22 | # Map /vtn to the onos instance that is controller the cordvtn |
| 23 | # application |
| 24 | <Location /vtn/> |
Scott Baker | b4adda0 | 2016-12-05 21:06:35 -0800 | [diff] [blame] | 25 | ProxyPass http://onos-cord:8182/ |
| 26 | ProxyPassReverse http://onos-cord:8182/ |
David K. Bainbridge | 49b75ef | 2016-08-24 15:24:15 -0700 | [diff] [blame] | 27 | ProxyPassReverseCookiePath "/" "/vtn/" |
| 28 | Header edit Location "(^http[s]?://[^/]*)(\.*)" "$1/vtn$2" |
| 29 | </Location> |
| 30 | |
| 31 | <Location /vtn/onos/ui/websock/> |
Scott Baker | b4adda0 | 2016-12-05 21:06:35 -0800 | [diff] [blame] | 32 | ProxyPass "ws://onos-cord:8182/onos/ui/websock/" disablereuse=on |
David K. Bainbridge | 49b75ef | 2016-08-24 15:24:15 -0700 | [diff] [blame] | 33 | </Location> |
| 34 | |
Matteo Scandolo | dd38a63 | 2017-04-24 11:23:44 -0700 | [diff] [blame] | 35 | # Cord GUI and WS |
| 36 | ProxyPass /xos http://xos-gui:4000 |
| 37 | ProxyPass /xos/socket.io http://xos-ws:3000/socket.io |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 38 | ProxyPass /socket.io http://xos-ws:3000/socket.io |
Matteo Scandolo | 5c71a4b | 2017-01-10 12:00:50 -0800 | [diff] [blame] | 39 | <Location /socket.io> |
| 40 | RewriteEngine on |
| 41 | RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC] |
| 42 | RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC] |
Matteo Scandolo | fb9ac8a | 2017-04-19 15:51:11 -0700 | [diff] [blame] | 43 | RewriteRule .* ws://xos-ws:3000%{REQUEST_URI} [P] |
Matteo Scandolo | 5c71a4b | 2017-01-10 12:00:50 -0800 | [diff] [blame] | 44 | </Location> |
Matteo Scandolo | 7023aa2 | 2017-05-09 11:34:52 -0700 | [diff] [blame] | 45 | |
| 46 | # Chameleon swagger |
| 47 | ProxyPass /apidocs/ http://xos-chameleon:9101/apidocs/ |
| 48 | ProxyPass /v1/swagger.json http://xos-chameleon:9101/apidocs/v1/swagger.json |
Matteo Scandolo | 5c71a4b | 2017-01-10 12:00:50 -0800 | [diff] [blame] | 49 | |
Matteo Scandolo | c4f2c5f | 2017-07-12 16:25:08 -0700 | [diff] [blame] | 50 | # TOSCA |
| 51 | ProxyPass /xos-tosca http://xos-tosca:9102 |
| 52 | |
Varun Belur | 8676453 | 2017-09-08 18:39:58 -0600 | [diff] [blame] | 53 | # ELK STACK |
Sapan Bhatia | 05b3fa7 | 2018-01-04 14:00:52 -0500 | [diff] [blame] | 54 | ProxyPass /app/kibana http://xos:5601/app/kibana |
| 55 | ProxyPassReverse /app/kibana http://xos:5601/app/kibana |
| 56 | |
| 57 | ProxyPass /app/timelion http://xos:5601/app/timelion |
| 58 | ProxyPassReverse /app/timelion http://xos:5601/app/timelion |
| 59 | |
| 60 | ProxyPass /bundles http://xos:5601/bundles |
| 61 | ProxyPassReverse /bundles http://xos:5601/bundles |
| 62 | |
| 63 | ProxyPass /elasticsearch http://xos:9200 |
| 64 | ProxyPassReverse /elasticsearch http://xos:9200 |
| 65 | |
| 66 | ProxyPass /status http://xos:5601/status |
| 67 | ProxyPassReverse /status http://elk:/status |
| 68 | |
| 69 | ProxyPass /api/status http://xos:5601/api/status |
| 70 | ProxyPassReverse /api/status http://xos:5601/api/status |
| 71 | |
| 72 | ProxyPass /api/saved_objects http://xos:5601/api/saved_objects |
| 73 | ProxyPassReverse /api/saved_objects http://xos:5601/api/saved_objects |
| 74 | |
| 75 | ProxyPass /api/console http://xos:5601/api/console |
| 76 | ProxyPassReverse /api/console http://xos:5601/api/console |
| 77 | |
| 78 | ProxyPass /api/timelion/run http://xos:5601/api/timelion/run |
| 79 | ProxyPassReverse /api/timelion/run http://xos:5601/api/timelion/run |
| 80 | |
| 81 | ProxyPass /api/timelion/functions http://xos:5601/api/timelion/functions |
| 82 | ProxyPassReverse /api/timelion/functions http://xos:5601/api/timelion/functions |
| 83 | |
| 84 | ProxyPass /plugins/kibana/ http://xos:5601/plugins/kibana/ |
| 85 | ProxyPassReverse /plugins/kibana/ http://xos:5601/plugins/kibana/ |
| 86 | |
| 87 | ProxyPass /plugins/timelion/ http://xos:5601/plugins/timelion/ |
| 88 | ProxyPassReverse /plugins/timelion/ http://xos:5601/plugins/timelion/ |
| 89 | |
| 90 | ProxyPass /app/sense http://xos:5601/app/sense |
| 91 | ProxyPassReverse /app/sense http://xos:5601/app/sense |
| 92 | |
| 93 | ProxyPass /ui/fonts/open_sans/ http://xos:5601/ui/fonts/open_sans/ |
| 94 | ProxyPassReverse /ui/fonts/open_sans/ http://xos:5601/ui/fonts/open_sans/ |
| 95 | |
| 96 | ProxyPass /es_admin/ http://xos:5601/es_admin/ |
| 97 | ProxyPassReverse /es_admin/ http://xos:5601/es_admin/ |
Varun Belur | 8676453 | 2017-09-08 18:39:58 -0600 | [diff] [blame] | 98 | |
David K. Bainbridge | 49b75ef | 2016-08-24 15:24:15 -0700 | [diff] [blame] | 99 | # Map the various XOS roots to the XOS instance |
Matteo Scandolo | dd38a63 | 2017-04-24 11:23:44 -0700 | [diff] [blame] | 100 | ProxyPass /xos-deprecated http://xos:9000 |
| 101 | ProxyPass /xos-deprecated/ http://xos:9000/ |
Matteo Scandolo | 5c71a4b | 2017-01-10 12:00:50 -0800 | [diff] [blame] | 102 | ProxyPassMatch /(api)$ http://xos:9000/$1/ |
| 103 | ProxyPass /api/ http://xos:9000/api/ |
| 104 | ProxyPass /login http://xos:9000/login |
| 105 | ProxyPass /admin/ http://xos:9000/admin/ |
| 106 | ProxyPass /static/ http://xos:9000/static/ |
| 107 | ProxyPass /loggedin/ http://xos:9000/loggedin/ |
| 108 | ProxyPass /serviceGrid/ http://xos:9000/serviceGrid/ |
Scott Baker | b719703 | 2017-02-02 11:32:42 -0800 | [diff] [blame] | 109 | |
Matteo Scandolo | dd38a63 | 2017-04-24 11:23:44 -0700 | [diff] [blame] | 110 | # Rest APIs |
Scott Baker | b719703 | 2017-02-02 11:32:42 -0800 | [diff] [blame] | 111 | ProxyPass /xosapi/ http://xos-chameleon:9101/xosapi/ |
David K. Bainbridge | 49b75ef | 2016-08-24 15:24:15 -0700 | [diff] [blame] | 112 | </IfModule> |
| 113 | |
| 114 | <IfModule rewrite_module> |
| 115 | RewriteEngine On |
| 116 | # Redirect (permanently) requests for /MAAS to /MAAS/. |
| 117 | RewriteRule ^/MAAS$ %{REQUEST_URI}/ [R=301,L] |
| 118 | </IfModule> |
| 119 | |
| 120 | # Redirects so that basic URLs entered go the right place |
| 121 | Redirect /fabric /fabric/onos/ui |
| 122 | Redirect /vtn /vtn/onos/ui |