Skip to content

Commit

Permalink
Config snippet to block swagger/metrics (#115)
Browse files Browse the repository at this point in the history
* Config snippet to block swagger/metrics

* Block a few more things
  • Loading branch information
cmmarslender authored Oct 21, 2024
1 parent 79e9ee1 commit 5fa57f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ deployCert: {{ HOSTNAME == 'dashboard.chia.net' }}

ingress:
hostname: {{ HOSTNAME }}
annotations:
ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
location ~ ^/(swagger|metrics|admin|datasources|connections/datasources) {
return 403;
}

env:
- name: GF_SERVER_ROOT_URL
Expand Down

0 comments on commit 5fa57f9

Please sign in to comment.