owenthereal / jqplay

A playground for jq, written in Go
https://jqplay.org
MIT License
734 stars 87 forks source link

jqplay with nginx proxy_pass #137

Open fredericpetit-gh opened 1 year ago

fredericpetit-gh commented 1 year ago

Hi everybody,

i tried to enable a nginx proxy_pass litke this :

server {
    listen 80;
    server_name jqplay.localhost.intra;

    location / {
        proxy_pass http://localhost:8090;
        proxy_set_header Host $host;
        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_connect_timeout 30;
        proxy_send_timeout 30;
    }
}

problem is there are incorrect assets/public path like http://localhost:8090/assets/public/js/app.min.1678800922491.js is accessible but not http://jqplay.localhost.intra/assets/public/js/app.min.1678800922491.js

do i need some rewriting ?