Skip to content

Commit 2e1105b

Browse files
committed
fixed opencpu public access URL and update libraries on startup
1 parent bca6034 commit 2e1105b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docker-config/nginx/conf/includes/locations/opencpu.conf

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ location /ocpu/ {
33
add_header Strict-Transport-Security "max-age=0; includeSubdomains;";
44
add_header Cache-Control "no-store, no-cache, must-revalidate";
55
expires -1;
6-
proxy_pass http://opencpu:80/;
6+
proxy_set_header Host $host;
7+
proxy_set_header X-Real-IP $remote_addr;
8+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
9+
proxy_set_header X-Forwarded-Proto $scheme;
10+
proxy_pass http://opencpu:80/ocpu/;
711
}
8-
9-

docker-config/opencpu/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
FROM okgreece/opencpu-docker-obeu
2+
3+
#update the algorithms
4+
RUN R < libraries.R --no-save

0 commit comments

Comments
 (0)