Skip to content

Commit

Permalink
Serve the output directory from compile.purescript.org (#159)
Browse files Browse the repository at this point in the history
* Serve the output directory from compile.purescript.org

* Only serve JS files
  • Loading branch information
hdgarrood authored May 2, 2020
1 parent 94689fc commit 545b037
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,10 @@ server {
location / {
proxy_pass http://127.0.0.1:8081;
}

# Serve JS files from the output directory. We use a regular expression
# match to ensure that we only serve JS files.
location ~ ^/output/(.+\.js)$ {
alias /var/www/trypurescript/staging/.psci_modules/node_modules/$1;
}
}

0 comments on commit 545b037

Please sign in to comment.