smashing icon indicating copy to clipboard operation
smashing copied to clipboard

Launch with proxy server and with alias

Open wawanUnic opened this issue 10 months ago • 1 comments

Hi. Is there a way to run this program using an alias? I need the website address: my.site.com/dash/ I redirect the proxy server like this:

server {
    server_name my.site.com;
    location /dash/ {
        proxy_pass http://localhost:3030;
    }

But it doesn't work. I get the error: https://my.site.com/dash/

Drats! That Dashboard doesn't exist.
You may have mistyped the address or the page may have moved.

What am I doing wrong?

wawanUnic avatar Jan 17 '25 10:01 wawanUnic

Hi,

It should work, and I used it in the past (both DNS subdomain dashboard.site.com, and nginx/httpd sites like site.com/dashboard).

What am I doing wrong?

It looks like your redirect is passing that to Smashing, but maybe the dashboard part is missing? Do you have a default dashboard that loads correctly going to localhost:3030 from a machine with access to that server? I think localhost:3030 might redirect to your dashboard in Smashing, and you may need to handle that in nginx too?

Sorry I don't have any fresh examples, and it has been a while since the last time I set it up from scratch. Maybe something in our Wiki will help you too, e.g. https://github.com/Smashing/smashing/wiki/How-To%3A-Run-smashing-on-a-sub-path?

Cheers

kinow avatar Jan 19 '25 09:01 kinow