Skip to content

Commit

Permalink
fhir server devops updates
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpeterkort committed Aug 6, 2024
1 parent c7be195 commit 8eafc06
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
23 changes: 12 additions & 11 deletions helm/fhir-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,25 @@ spec:
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
exec:
command:
- ls
- /home
httpGet:
path: /_status
port: http
initialDelaySeconds: 30
periodSeconds: 60
timeoutSeconds: 30
readinessProbe:
exec:
command:
- ls
- /home
initialDelaySeconds: 5
periodSeconds: 5
httpGet:
path: /_status
port: http
initialDelaySeconds: 30

resources:
{{- toYaml .Values.resources | nindent 12 }}
command:
- "/bin/sh"
- "-c"
- >
uvicorn bundle_service.main:app --port 8000 --reload
uvicorn bundle_service.main:app --host 0.0.0.0 --port 8000 --reload
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
15 changes: 15 additions & 0 deletions helm/revproxy/gen3.nginx.conf/local-fhir-server.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
location /Bundle {
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
send_timeout 600s;

set $proxy_service "local-fhir-server";
#upstream is written to logs
#add_header Access-Control-Allow-Origin *;
#add_header Content-Type application/json;
set $upstream http://local-fhir-server.$namespace.svc.cluster.local:8000;
rewrite ^/local-fhir-server/(.*) /$1 break;
proxy_pass $upstream;
client_max_body_size 0;
}
20 changes: 2 additions & 18 deletions helm/revproxy/gen3.nginx.conf/local-grip.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
location /grip/graphql/synthea {
location /grip/read/api {
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
Expand All @@ -8,23 +8,7 @@ location /grip/graphql/synthea {
#upstream is written to logs
#add_header Access-Control-Allow-Origin *;
#add_header Content-Type application/json;
set $upstream http://local-grip.$namespace.svc.cluster.local:8201/api/graphql/synthea;
rewrite ^/grip/(.*) /$1 break;
proxy_pass $upstream;
client_max_body_size 0;
}

location /grip/graphql/api {
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
send_timeout 600s;

set $proxy_service "grip";
#upstream is written to logs
#add_header Access-Control-Allow-Origin *;
#add_header Content-Type application/json;
set $upstream http://local-grip.$namespace.svc.cluster.local:8201/graphql/api;
set $upstream http://local-grip.$namespace.svc.cluster.local:8201/read/api;
rewrite ^/grip/(.*) /$1 break;
proxy_pass $upstream;
client_max_body_size 0;
Expand Down

0 comments on commit 8eafc06

Please sign in to comment.