Suwayomi / docker-tachidesk

Run Suwayomi-Server in a docker container
Mozilla Public License 2.0
240 stars 57 forks source link

Reverse proxyed to tachidesk #64

Closed duanyu5871 closed 7 months ago

duanyu5871 commented 10 months ago

Is there any methods to reverse proxy to tachidesk with sub path. For example, tachidesk is running on port 4567, and can be accessed with localhost:4567 When I tried to reverse proxy to port 4567 with sub path like follow:

location /tachidesk {
        proxy_pass http://localhost:4567;
        proxy_set_header Connection "upgrade";
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header X-Forwarded-for $remote_addr;
    proxy_set_header X-Scheme $scheme;
    }

Nothing can work because with 404 error, because all web path don't have prefix in URL. image

Robonau commented 10 months ago

that will also proxy to http://localhost:4567/tachidesk/... no? cause you aren't rewriting the url

just in general you are probably better off using subdomains than sub paths ya wont ever run in to a service that cant deal with a subdomain