Skip to content

Commit

Permalink
Shiny proxy chart v1.2.2. Added configmap to force use of IPv4.
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredeen committed Jul 5, 2024
1 parent 4fb4e6d commit 564a24c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/shinyproxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: shinyproxy
description: A Helm chart to install Shinyproxy
type: application
version: 1.2.1
version: 1.2.2
appVersion: "0.1"
maintainers:
- name: Team Whale
Expand Down
15 changes: 15 additions & 0 deletions apps/shinyproxy/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,19 @@ data:
runAsNonRoot: true
allowPrivilegeEscalation: false
privileged: false
- op: add
path: /spec/volumes
value:
- name: {{ .Release.Name }}-shiny-configmap
configMap:
name: {{ .Release.Name }}-shiny-configmap
items:
- key: shiny-server.conf
path: shiny-server.conf
- op: add
path: /spec/containers/0/volumeMounts
value:
- mountPath: /etc/shiny-server/shiny-server.conf
subPath: shiny-server.conf
name: {{ .Release.Name }}-shiny-configmap
title: Serve Shiny Proxy
29 changes: 29 additions & 0 deletions apps/shinyproxy/templates/shiny-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This configmap relates to the shiny app pod spawned by the shinyproxy deployment
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-shiny-configmap
namespace: {{ .Release.Namespace }}
data:
shiny-server.conf: |-
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
http_keepalive_timeout 600;
# Define a server that listens on user defined port
server {
listen {{ .Values.appconfig.port }} 0.0.0.0;
# Define a location at the base URL
location / {
# Host the directory of Shiny Apps stored in this directory
site_dir /srv/shiny-server;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
# When a user visits the base URL rather than a particular application,
# an index of the applications available in this directory will be shown.
directory_index on;
app_init_timeout 600;
app_idle_timeout 600;
}
app_init_timeout 600;
app_idle_timeout 600;
}

0 comments on commit 564a24c

Please sign in to comment.