Flomp/wanderer

[HOW TO] Setup wanderer after NPM/Proxy

berils opened this issue · 6 comments

Hi developers,

Can you please write instruction, guide how to setup wanderer after nginx proxy manager(npm)?
Localy its running pretty cool, but im facing issues when i want to share it my friends/WWW.

Could you please specify what issues you are facing?
I'm running wanderer behind npm on my raspberry pi without any problems.

Using: Ubuntu 22.04, freshly installed docker+compose , wget newest docker-compose file (0.4.0)
changed origin IP to local IP (http://x.x.x.35:3000)
NPM config for host:
image
Locally i can login successfully, but when accessing from WWW, getting 403
image

My point from your previous issue still stands: I would be interested in the JSON part of the 403 response.

Hi again,
so i made poor quality gif, but i found in preview section (selecting X login) text:
"Cross-site POST form submissions are forbidden"
image

p.s. tried to change https://IP:3000 to https://wanderer.npmdomain.org:3000
nothing changes.
p.s.s. tried to change to http:// , nothing changes.

Cross-site POST form submissions are forbidden is very likely related to an incorrect ORIGIN env variable. The value needs to be exactly what you type in your browser address bar to access your instance.
This is my npm config:
grafik

And this is my docker-compose env section:

web:
    container_name: wanderer-web
    image: flomp/wanderer-web
...
    environment:
      <<: *cenv
      ORIGIN: https://wanderer.homeserver.lan
...

This allows me to access wanderer at https://wanderer.homeserver.lan (the https comes from my npm config and not from wanderer itself).

Yes sir!
Problem solved, thanks to your share!
So if using NPM ORIGIN should not include :3000 at the end. Then everything is working as expected.