Skip to content

Instantly share code, notes, and snippets.

@kevinswiber
Created June 20, 2018 17:07
Show Gist options
  • Save kevinswiber/bc3fd414de2da76fa8a1dbd34c62ad6a to your computer and use it in GitHub Desktop.
Save kevinswiber/bc3fd414de2da76fa8a1dbd34c62ad6a to your computer and use it in GitHub Desktop.
Express Gateway with TLSv1 disabled
http:
port: 8080
https:
port: 9443
options:
secureOptions: 67108864 # node -p "require('constants').SSL_OP_NO_TLSv1"
tls:
"*.demo.io":
key: example/keys/demo.io.key.pem
cert: example/keys/demo.io.cert.pem
admin:
port: 9876
hostname: localhost
apiEndpoints:
api:
host: localhost
paths: '/ip'
serviceEndpoints:
httpbin:
url: 'https://httpbin.org'
policies:
- basic-auth
- cors
- expression
- key-auth
- log
- oauth2
- proxy
- rate-limit
pipelines:
default:
apiEndpoints:
- api
policies:
# Uncomment `key-auth:` when instructed to in the Getting Started guide.
# - key-auth:
- proxy:
- action:
serviceEndpoint: httpbin
changeOrigin: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment