Created
June 20, 2018 17:07
-
-
Save kevinswiber/bc3fd414de2da76fa8a1dbd34c62ad6a to your computer and use it in GitHub Desktop.
Express Gateway with TLSv1 disabled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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