-
Notifications
You must be signed in to change notification settings - Fork 7
/
proxy.yml
107 lines (105 loc) · 2.38 KB
/
proxy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
apiVersion: apps/v1
kind: Deployment
metadata:
name: imgproxy
spec:
selector:
matchLabels:
app: imgproxy
replicas: 1
template:
metadata:
labels:
app: imgproxy
spec:
containers:
- name: imgproxy
image: darthsim/imgproxy:v3.7.1
resources:
requests:
cpu: 1m
env:
- name: IMGPROXY_JPEG_PROGRESSIVE
value: "true"
- name: IMGPROXY_ENFORCE_WEBP
value: "true"
- name: IMGPROXY_ENABLE_WEBP_DETECTION
value: "true"
- name: IMGPROXY_BIND
value: :8080
- name: IMGPROXY_FORMAT_QUALITY
value: jpeg=85,webp=85
- name: IMGPROXY_PREFERRED_FORMATS
value: jpeg,webp
- name: IMGPROXY_ALLOWED_SOURCES
value: https://r2.comfy.icu/
- name: IMGPROXY_READ_TIMEOUT
value: "60"
- name: IMGPROXY_DOWNLOAD_TIMEOUT
value: "60"
- name: IMGPROXY_KEEP_ALIVE_TIMEOUT
value: "60"
- name: IMGPROXY_WRITE_TIMEOUT
value: "60"
livenessProbe:
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
ports:
- containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: imgproxy
name: imgproxy
spec:
ports:
- port: 80
targetPort: 8080
protocol: TCP
selector:
app: imgproxy
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: imgproxy
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "false"
# cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.org/client-max-body-size: 3m
nginx.ingress.kubernetes.io/proxy-body-size: 3m
spec:
# tls:
# - hosts:
# - comfy.icu
# secretName: comfy-icu
rules:
- host: img.comfy.icu
http: &http_rules
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: imgproxy
port:
number: 80