Skip to content

Instantly share code, notes, and snippets.

@moderation
Created July 14, 2021 01:16
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 moderation/110da28f955959860f928deca33fd705 to your computer and use it in GitHub Desktop.
Save moderation/110da28f955959860f928deca33fd705 to your computer and use it in GitHub Desktop.
admin: {
address: socket_address: {
address: "::1"
port_value: 9090
}
}
static_resources: {
clusters: [{
connect_timeout: "0.5s"
lb_policy: "ROUND_ROBIN"
load_assignment: {
cluster_name: "datasette"
endpoints: [{
lb_endpoints: [{
endpoint: address: pipe: path: "/tmp/datasette.sock"
}]
}]
}
name: "datasette"
type: "STATIC"
}]
listeners: [{
address: socket_address: {
address: "::1"
port_value: 8080
}
filter_chains: [{
filters: [{
name: "envoy.filters.network.http_connection_manager"
typed_config: {
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager"
codec_type: "AUTO"
http_filters: [{
name: "envoy.filters.http.router"
}]
route_config: {
name: "local_route"
virtual_hosts: [{
domains: ["*"]
name: "datasette"
routes: [{
match: prefix: "/"
route: cluster: "datasette"
}]
}]
}
stat_prefix: "datasette"
}
}]
}]
name: "datasette"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment