Git Product home page Git Product logo

Comments (21)

causefx avatar causefx commented on April 28, 2024 1

or try this if it doesnt work:

location /web {
    proxy_pass http://localhost:32400;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
location /plex {
    proxy_pass http://localhost/web;
  }

from organizr.

rix1337 avatar rix1337 commented on April 28, 2024

Duplicate of #20 ?

from organizr.

gmdfalk avatar gmdfalk commented on April 28, 2024

I don't see what this has to do with proxies. I'd say it's more of a bug, too, since Organizr can resolve external URLs just fine.

from organizr.

rix1337 avatar rix1337 commented on April 28, 2024

Sounded like you were trying to access localhost outside your network ;)

Are you trying to access organizr through https?

from organizr.

rix1337 avatar rix1337 commented on April 28, 2024

Also append /web to your plex url!

from organizr.

gmdfalk avatar gmdfalk commented on April 28, 2024

I'm sorry, you are right, i am trying to access localhost outside the server network.
I didn't realize proxy functionality is necessary to make that work.

I figured since organizr is running locally on the server it should be able to access the running web services there and present them to me without any need for proxying.

from organizr.

causefx avatar causefx commented on April 28, 2024

Are you using apache or nginx?

from organizr.

gmdfalk avatar gmdfalk commented on April 28, 2024

nginx

from organizr.

causefx avatar causefx commented on April 28, 2024

You create a location block to reverse proxy your Plex app.

from organizr.

gmdfalk avatar gmdfalk commented on April 28, 2024

Can you give an example?
I already reverse proxy all apps, e.g. proxy_pass http://localhost:32400

from organizr.

causefx avatar causefx commented on April 28, 2024

same way as those.

location /plex { proxy_pass http://localhost:32400; }
location /web { proxy_pass http://localhost:32400/web; }

from organizr.

gmdfalk avatar gmdfalk commented on April 28, 2024

Thank you for the reply, I have tried it and i'm not sure it is the best way to approach this.
For one thing, i have more than 10 services I'd like to put into Organizr and basically none of them work as sublocations unless you figure out the correct url rewrites for each one and/or reconfigure the service to adjust the base URL.
Another reason is that i don't really want to expose those services as sublocations because i prefer subdomains. In my experience, services work much better on a separate subdomain.

from organizr.

causefx avatar causefx commented on April 28, 2024

that's entirely up to you. unless you reverse proxy them, subdomain them or open up the ports that is the only way you will access them. I have all my services through reverse proxies and have them all secured using their own securities. I have all of them in Organizr fine.

image

from organizr.

gmdfalk avatar gmdfalk commented on April 28, 2024

That's interesting. Do you use nginx? If so, would you mind sharing your sublocation configuration for these services?

from organizr.

causefx avatar causefx commented on April 28, 2024

yea, sorry man just got home.

	location /tv {
		proxy_pass http://usenet.home.lab:8989;
		proxy_set_header Host $host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}

	location /movie {
		proxy_pass https://usenet.home.lab:5050;
		proxy_set_header Host $host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}
	
	location /nzbget {
		proxy_pass https://usenet.home.lab:6789;
		proxy_set_header Host $host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}
	
	location /request {
                proxy_pass http://usenet.home.lab:3579;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

	location /plexpy {
                proxy_pass https://plex.home.lab:8181;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header    X-Forwarded-Host    $server_name;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header    X-Forwarded-Proto   $scheme;
		proxy_set_header    X-Forwarded-Ssl     on;
        }
	
	location /vpn {
		proxy_pass https://dns.home.lab:1194;
		proxy_set_header Host $host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	}

	location /unifi {
                proxy_pass https://unifi.home.lab:8443;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
	}

        location /nzbhydra {
                proxy_pass http://usenet.home.lab:5075/nzbhydra/;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

        location /music {
                proxy_pass https://usenet.home.lab:8181;
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

from organizr.

causefx avatar causefx commented on April 28, 2024

closing as this is a duplicate. hope that conf helps you, if not hit me up and i'll help you.

from organizr.

gogo199432 avatar gogo199432 commented on April 28, 2024

Hey, sorry for opening up this, but is there any chance you could tell me where to put these settings when I'm running a container version of Organizr? Can't seem to find the config file anywhere.
Using this image if it helps: https://hub.docker.com/r/lsioarmhf/organizr/

Edit: Nvm, I found it inside config/nginx/default but none of the solutions from above seem to be working :/

from organizr.

2sh33ts avatar 2sh33ts commented on April 28, 2024

@causefx: first off I love the idea of Organizr, but I am having trouble setting it up. I got it installed but each tab does not connect to it's respective service/app. I've read that localhost:port urls won't work and that reverse proxies are needed, but I can't seem to get them setup correctly. I feel like I am really close, but missing something. Any help you provide would be greatly appreciated.

Also, sorry if this is in the wrong place. I am new to GitHub and Don't see a direct message option.

from organizr.

causefx avatar causefx commented on April 28, 2024

if you join our discord server we can help out.... i will be available tomorrow morning to help if needed :)

from organizr.

2sh33ts avatar 2sh33ts commented on April 28, 2024

from organizr.

causefx avatar causefx commented on April 28, 2024

https://organizr.app/discord

from organizr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.