Jump to content

Organizr v1.0 Released


causefx

Recommended Posts

CBers

Also found a bug with adding NzbGet to the home page, where the entry in the PORT field isn't saved. @elmerfdz is aware.

This has now been fixed.

Link to comment
Share on other sites

Swynol

so i got around to installing this. I already had NGINX so fairly straight forward for me. Most of my services work in iframe there are a few i needed to tweak my nginx config to get to work.

 

Here's my Organizr Server Block, it forces a HTTPS connection with my own certs and domain name. works for IPv4 and IPv6

## Organizr ##

server {
    listen [::]:80;
    listen 80;
    listen [::]:443 ssl;
    listen 443 ssl;
    server_name organizr.mydomain.co.uk;
	server_name localhost;	
	
	
        ssl_session_timeout 30m;
        ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
		ssl_certificate      SSL/cert.pem;
		ssl_certificate_key  SSL/private.key;
        ssl_session_cache shared:SSL:10m;
		if ($scheme = http) {
        return 301 https://$server_name$request_uri;
    }
		
	location / {
	root html;
	index index.php index.html index.htm;
}

location ~ \.php$ {
        root           html;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  C:/nginxlion/html$fastcgi_script_name; ##My install directory is different than most##
        include        fastcgi_params;
}
}

Any services that failed to run in iframe i had to add this to the location blocks on the services.

 

proxy_hide_header X-Frame-Options;

 

example 

	
	server {
    listen [::]:80;
    listen 80;
    listen [::]:443 ssl;
    listen 443 ssl;
    server_name random.mydomain.co.uk; 
	
        ssl_session_timeout 30m;
        ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
		ssl_certificate      SSL/cert.pem;
		ssl_certificate_key  SSL/private.key;
        ssl_session_cache shared:SSL:10m;
		if ($scheme = http) {
        return 301 https://$server_name$request_uri;
    }

     location / {
        proxy_pass https://192.168.10.10:8443;  

		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "upgrade";
		
		proxy_hide_header X-Powered-By;
		proxy_set_header Range $http_range;
		proxy_set_header If-Range $http_if_range;
		proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header Host $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_hide_header X-Frame-Options;

    }
}

EDIT: changed the above 

Edited by Swynol
  • Like 1
Link to comment
Share on other sites

CBers

Anyone figured a way to get Emby on the homepage rather than plex?

It's not implemented yet.

 

@@causefx is working on it.

  • Like 1
Link to comment
Share on other sites

CBers

Some screenshots of my Organizr setup

 

 

Nice.

 

You know you can drag your HOME tab to the top in settings and make it the default tab to open, if you want to that is :)

Link to comment
Share on other sites

Swynol

ye i prefer to have Emby my default. Maybe once Emby is integrated into the homepage I will re-think it. :)

Link to comment
Share on other sites

shorty1483

Is there a way to set the iframe tabs up if the different services like emby or sabnzbd have an own subdomain and server blocks e.g. emby.domain.com/nzb.domain.com?

  • Like 1
Link to comment
Share on other sites

Swynol

mine have their own server blocks with subdomains and all work in iframe

 

so in organizr settings i have the tab point to https://emby.mydomain.com etc. emby.mydomain.com comes into my router on port 443 NGINX does its magic and all works.

Edited by Swynol
Link to comment
Share on other sites

shorty1483

Dear nginx users, avoid this one in the server block:

add_header X-Frame-Options "SAMEORIGIN" always;

It will destroy iframe functionality since it suppresses iframe. Delete the line or use ALLOW-FROM <uri>; 

Link to comment
Share on other sites

Swynol

i use the hide header function for services that block iframe by default. see my post a bit further up for a sample server block

Link to comment
Share on other sites

shorty1483
proxy_hide_header X-Frame-Options;

You can also use this to hide the header.

 

 

 

i use the hide header function for services that block iframe by default. see my post a bit further up for a sample server block

 

 

This does not work for me if I set add_header X-Frame-Options "SAMEORIGIN" always; inside server block.

 

 

Anyway, I found a better and more modern way:

add_header Content-Security-Policy "default-src *.mydomain.de;";

With this X-Frame Options are just hidden inside my domain+subdomains.

Edited by shorty1483
  • Like 1
Link to comment
Share on other sites

shorty1483

@@Swynol This is a better one because in the above post code, you need to apply also all inline emby scripts and googlefonts etc...:

add_header X-Frame-Options "SAMEORIGIN" always;
add_header Content-Security-Policy "frame-ancestors sub.domain.de sub.domain.de sub.domain.de sub.domain.de;";

Both in server block of subdomains. Sameorigin still aplies except for your own subdomains regarding the iframe option. Works like a charm here.

Edited by shorty1483
Link to comment
Share on other sites

Swynol

ok so i replace

proxy_hide_header X-Frame-Options;

with 

add_header X-Frame-Options "SAMEORIGIN" always;
add_header Content-Security-Policy "frame-ancestors sub.domain.de sub.domain.de sub.domain.de sub.domain.de;";

for each of my server blocks and i have to add all my subdomains into the list?

Link to comment
Share on other sites

shorty1483

ok so i replace

proxy_hide_header X-Frame-Options;

with 

add_header X-Frame-Options "SAMEORIGIN" always;
add_header Content-Security-Policy "frame-ancestors sub.domain.de sub.domain.de sub.domain.de sub.domain.de;";

for each of my server blocks and i have to add all my subdomains into the list?

 

Yes sir, working perfectly here.

 

First it thought this one is nice (add_header Content-Security-Policy "default-src *.mydomain.de;";), but then  I recognized that all Emby inline scripting like custom css is not applied when framed into Organizr. So I searched a bit more and the above is the ultima ratio. Plus all actual browsers support it.

  • Like 1
Link to comment
Share on other sites

schmitty

I have followed the basic install instructions, and I go to the webpage, and it says connection refused

 

 

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...