Skip to content

Commit 793ba9c

Browse files
committed
feat(cloud-screenshot): update nginx config
1 parent e1eda78 commit 793ba9c

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

charts/cloud-screenshot/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ maintainers:
55
66
name: Elegant Themes
77
name: cloud-screenshot
8-
version: 1.0.6
8+
version: 1.0.7

charts/cloud-screenshot/templates/cloud-screenshot.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ kind: ServiceMonitor
1717
metadata:
1818
name: cloud-screenshot
1919
namespace: dc-screenshot
20+
labels:
21+
app: cloud-screenshot
2022
spec:
2123
selector:
2224
matchLabels:

charts/cloud-screenshot/templates/nginx-config.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,16 @@ data:
3939
listen 80;
4040
server_name _;
4141
42-
return 301 http://cloud-screenshot.dc-screenshot.svc.cluster.local$request_uri;
42+
# Redirect all requests to the domain
43+
location / {
44+
return 301 http://cloud-screenshot.dc-screenshot.svc.cluster.local$request_uri;
45+
}
46+
47+
# Handle liveness probe
48+
location /healthz {
49+
access_log off;
50+
return 200;
51+
}
4352
}
4453
4554
server {

0 commit comments

Comments
 (0)