Skip to content

Commit

Permalink
fix: helm installation
Browse files Browse the repository at this point in the history
  • Loading branch information
gasRU76 committed Aug 8, 2023
1 parent e17473d commit c03b839
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/brokencrystals/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: |
Benchmark application that uses modern technologies and implements a set of
common security vulnerabilities
type: application
version: 0.0.23
version: 0.0.24
keywords:
- brokencrystals
- brkn
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
value: "https://raw.githubusercontent.com/NeuraLegion/brokencrystals/development/config/keys/x509.crt"
volumeMounts:
- name: {{ include "brokencrystals.fullname" . }}-nginx-proxy
mountPath: /etc/nginx/conf.d/default.conf
mountPath: /etc/nginx/conf.d/certbot.conf
subPath: default.conf
readOnly: true
resources:
Expand Down
20 changes: 13 additions & 7 deletions charts/brokencrystals/templates/nginx-proxy-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ data:
# /etc/nginx/conf.d/default.conf
default.conf: |
server {
listen 80;
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
server_name brokencrystals.com;
ssl_certificate /etc/letsencrypt/live/brokencrystals.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/brokencrystals.com/privkey.pem;
root /var/www/html;
Expand All @@ -22,26 +27,26 @@ data:
}
location /api {
proxy_pass http://{{ include "brokencrystals.fullname" . }}-nodejs:3000;
proxy_pass http://nodejs:3000;
}
location /swagger {
proxy_pass http://{{ include "brokencrystals.fullname" . }}-nodejs:3000;
proxy_pass http://nodejs:3000;
}
location /graphiql {
proxy_pass http://{{ include "brokencrystals.fullname" . }}-nodejs:3000;
proxy_pass http://nodejs:3000;
}
location /graphql {
proxy_pass http://{{ include "brokencrystals.fullname" . }}-nodejs:3000;
proxy_pass http://nodejs:3000;
}
location /put.raw {
rewrite put.raw /api/file/raw?path=./gil.txt break;
proxy_pass http://{{ include "brokencrystals.fullname" . }}-nodejs:3000;
proxy_pass http://nodejs:3000;
}
location ~* ^/(config\.js|config\.json|\.htaccess|\.env|\.nginx\.conf|\.robots\.txt)$ {
allow all;
log_not_found off;
Expand All @@ -57,3 +62,4 @@ data:
location = /50x.html {
}
}

0 comments on commit c03b839

Please sign in to comment.