-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,3 +80,4 @@ VOLUME ["/import"] | |
WORKDIR /import/ | ||
# Start RStudio | ||
CMD /startup.sh | ||
EXPOSE 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
server { | ||
# listen IE_PORT; | ||
listen 80; | ||
server_name localhost; | ||
access_log /var/log/nginx/localhost.access.log; | ||
|
||
# Some help from https://superuser.com/questions/689885/make-nginx-reverse-proxy-302-redirect-to-a-uri-sub-folder-instead-of-root | ||
location ^~ /rstudio/IE_PORT/ { | ||
location ^~ PROXY_PREFIX/rstudio/ { | ||
add_header 'Access-Control-Allow-Origin' '*'; # IE_CORS_ORIGIN | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; | ||
add_header 'Access-Control-Allow-Headers' 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; | ||
|
||
proxy_buffering off; | ||
rewrite /rstudio/IE_PORT/(.*) /$1 break; | ||
rewrite PROXY_PREFIX/rstudio/(.*) /$1 break; | ||
proxy_pass http://127.0.0.1:8787; | ||
proxy_redirect http://127.0.0.1:8787/ /rstudio/IE_PORT/; | ||
proxy_redirect http://127.0.0.1:8787/ PROXY_PREFIX/rstudio/; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters