linuxserver / emulatorjs

Self hosted web based retro emulation front end with rom and art management.
379 stars 26 forks source link

folder location #93

Closed webysther closed 1 year ago

webysther commented 1 year ago

I tried to put admin (port 3000) as custom location, example.com as root for port 80 and example.com/admin for port 3000 but don't work, open but don't load static required files and I don't find a solution when using nginx-proxy-manager, has a example with swagger?

image

image

image

I tried to change example.com/admin/public/* but don't work to resolv the static files.

webysther commented 1 year ago

For everyone that want to have example.com/admin

location /admin {
    proxy_pass http://emulatorjs:3000/;
}

location /public {
    proxy_pass http://emulatorjs:3000/public/;
}

location ^~ /socket {
    rewrite  ^/socket/(.*)  /$1 break;
    proxy_pass http://emulatorjs:3000;
}