Skip to content

Instantly share code, notes, and snippets.

@theasp
Created January 20, 2018 19:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theasp/92b36733846be7dc0ed78840d3a3515a to your computer and use it in GitHub Desktop.
Save theasp/92b36733846be7dc0ed78840d3a3515a to your computer and use it in GitHub Desktop.
NGINX Configuration for shadow-cljs
location /shadow-cljs/ {
# Reverse proxy: http://192.168.0.2:9650/
proxy_pass http://192.168.0.2:9650/;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $http_host;
# Allow websockets
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Standard proxy headers
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering on;
proxy_read_timeout 60s;
proxy_send_timeout 60s;
gzip_proxied any;
}
@qdhaiqiang
Copy link

Hi,
http://192.168.0.2:9650/ is a shadow-cljs complied clojurescript project? How to config route to nginx location path "shadow-cljs"?
Thinks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment