Skip to content

Commit

Permalink
feat(cloud-screenshot): update nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
lots0logs committed Nov 19, 2024
1 parent e1eda78 commit 793ba9c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/cloud-screenshot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ maintainers:
- email: [email protected]
name: Elegant Themes
name: cloud-screenshot
version: 1.0.6
version: 1.0.7
2 changes: 2 additions & 0 deletions charts/cloud-screenshot/templates/cloud-screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ kind: ServiceMonitor
metadata:
name: cloud-screenshot
namespace: dc-screenshot
labels:
app: cloud-screenshot
spec:
selector:
matchLabels:
Expand Down
11 changes: 10 additions & 1 deletion charts/cloud-screenshot/templates/nginx-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,16 @@ data:
listen 80;
server_name _;
return 301 http://cloud-screenshot.dc-screenshot.svc.cluster.local$request_uri;
# Redirect all requests to the domain
location / {
return 301 http://cloud-screenshot.dc-screenshot.svc.cluster.local$request_uri;
}
# Handle liveness probe
location /healthz {
access_log off;
return 200;
}
}
server {
Expand Down

0 comments on commit 793ba9c

Please sign in to comment.