Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ysicing/default-backend
暂停页,一旦有访问则起服务
https://github.com/ysicing/default-backend
Last synced: 1 day ago
JSON representation
暂停页,一旦有访问则起服务
- Host: GitHub
- URL: https://github.com/ysicing/default-backend
- Owner: ysicing
- Created: 2022-03-10T02:50:45.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-01T20:34:14.000Z (over 1 year ago)
- Last Synced: 2024-06-21T06:28:28.985Z (5 months ago)
- Language: HTML
- Size: 4.31 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# default-backend
```bash
docker pull ysicing/defaultbackend:0.4.1
# 替换ingress default backend
```## 使用
```yaml
# kubectl get cm/nginx-ingress-nginx-controller -n kube-system -o yaml
apiVersion: v1
data:
access-log-path: /var/log/nginx/nginx_access.log
compute-full-forwarded-for: "true"
custom-http-errors: 404,503
error-log-path: /var/log/nginx/nginx_error.log
forwarded-for-header: X-Forwarded-For
generate-request-id: "true"
keep-alive-requests: "10000"
log-format-upstream: $remote_addr - $remote_user [$time_iso8601] $msec "$request"
$status $body_bytes_sent "$http_referer" "$http_user_agent" $request_length $request_time
[$proxy_upstream_name] [$proxy_alternative_upstream_name] [$upstream_addr] [$upstream_response_length]
[$upstream_response_time] [$upstream_status] $req_id
max-worker-connections: "65536"
proxy-body-size: 50m
upstream-keepalive-connections: "200"
use-forwarded-headers: "true"
kind: ConfigMap
```## v1版本参考
[defaultbackend-v1](https://github.com/ysicing/dockerfiles/tree/v1.0/defaultbackend)