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
| apiVersion: extensions/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: cafe-ingress | |
| spec: | |
| tls: | |
| - hosts: | |
| - cafe.example.com | |
| secretName: cafe-secret | |
| rules: |
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
| limit_conn_zone $binary_remote_addr zone=by_ip:10m; | |
| server { | |
| listen 80; | |
| location / { | |
| limit_conn by_ip 10; | |
| limit_conn_dry_run on; | |
| if ($limit_conn_status = REJECTED_DRY_RUN) { | |
| limit_rate 100; |
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
| { | |
| "routes": [ | |
| { | |
| "match": { | |
| "source": [ | |
| "*:8000", | |
| "*:0-65535" | |
| ] | |
| }, |
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
| { | |
| "listeners": { | |
| "*:8081": { | |
| "pass": "applications/hello-x64" | |
| } | |
| }, | |
| "applications": { | |
| "hello-x64": { | |
| "type": "asm", | |
| "executable": "/path/to/hello" |
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
| keyval_zone zone=grpc-greeter:128K type=ip timeout=48h; | |
| keyval $remote_addr $greeter_upstream zone=grpc-greeter; | |
| server { | |
| listen 50052 ssl http2; | |
| ssl_certificate /etc/ssl/certificate.crt; | |
| ssl_certificate_key /etc/ssl/privateKey.key; | |
| location /helloworld.Greeter { | |
| grpc_pass grpc://$greeter_upstream; #TLS termination |
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
| { | |
| "action": { | |
| "share": "/data/www/", | |
| "fallback": { | |
| "pass": "applications/php_blog" | |
| } | |
| } | |
| } |
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
| { | |
| "listeners": { | |
| "*:8080": { | |
| "pass": "routes/wordpress" | |
| } | |
| }, | |
| "routes": { | |
| "wordpress": [ | |
| { | |
| "match": { |
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
| js_import logging.js; # Load this JS file as the 'logging' module | |
| js_set $raw_headers_in logging.rawHeadersOnError; | |
| log_format json escape=none '{"response":' | |
| '{"timestamp":"$time_iso8601","status":$status},' | |
| '"request":' | |
| '{"client":"$remote_addr","uri":"$request_uri","headers":$raw_headers_in}}'; | |
| server { | |
| listen 80; |
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
| { | |
| "servers": { | |
| "192.168.0.100:8080": { | |
| "weight": 2, | |
| }, | |
| "192.168.0.101:8080": { | |
| "weight": 2, | |
| }, | |
| "192.168.0.102:8080" | |
| } |
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
| { | |
| "listeners": { | |
| "*:80": { | |
| "pass": "applications/ab_app" | |
| } | |
| }, | |
| "applications": { | |
| "ab_app": { | |
| "type": "php", |