Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deploy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ server {
location / {
proxy_pass http://127.0.0.1:8081;
}

location /output {
alias /var/www/trypurescript/staging/.psci_modules/node_modules;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a concern that this also potentially serves very large externs? Is it possible to glob only js files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's probably not a bad idea. I think it should be possible, I'll play around with it a bit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this is pretty straightforward. There's even an example in the docs which covers pretty much this exact use case: http://nginx.org/en/docs/http/ngx_http_core_module.html#location

}
}