Skip to content

Commit

Permalink
Smoketest google.com proxy config. (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
htuch authored and mattklein123 committed Feb 14, 2017
1 parent fa1d968 commit 4c3f957
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions configs/configgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ fi

mkdir -p $1
$BUILD_DIR/venv/bin/python $SCRIPT_DIR/configgen.py $1
cp -f $SCRIPT_DIR/google_com_proxy.json $1
47 changes: 47 additions & 0 deletions configs/google_com_proxy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"listeners": [{
"port": 10000,
"filters": [{
"type": "read",
"name": "http_connection_manager",
"config": {
"codec_type": "auto",
"stat_prefix": "ingress_http",
"route_config": {
"virtual_hosts": [{
"name": "local_service",
"domains": [
"*"
],
"routes": [{
"timeout_ms": 0,
"prefix": "/",
"host_rewrite": "www.google.com",
"cluster": "service_google"
}]
}]
},
"filters": [{
"type": "decoder",
"name": "router",
"config": {}
}]
}
}]
}],
"admin": {
"access_log_path": "/tmp/admin_access.log",
"port": 9901
},
"cluster_manager": {
"clusters": [{
"name": "service_google",
"connect_timeout_ms": 250,
"type": "logical_dns",
"lb_type": "round_robin",
"hosts": [{
"url": "tcp://google.com:80"
}]
}]
}
}
12 changes: 12 additions & 0 deletions docs/install/ref_configs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,15 @@ A few notes about the example configurations:
* The configuration demonstrates the use of a :ref:`global rate limiting service
<arch_overview_rate_limit>`. To disable this delete the :ref:`rate limit configuration
<config_rate_limit_service>`.

Smoketest configuration
-----------------------

A very minimal Envoy configuration that can be used to validate basic plain HTTP proxying is
available in :repo:`configs/google_com_proxy.json`. This is not intended to represent a realistic
Envoy deployment. To smoketest Envoy with this, run:

.. code-block:: console
build/source/exe/envoy -c configs/google_com_proxy.json -l debug
curl -v localhost:10000

0 comments on commit 4c3f957

Please sign in to comment.