Jump to content

Recommended Posts

Posted

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.

Posted (edited)

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
Posted

This looks cool

 

 

Sent from my iPhone using Tapatalk

Posted

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

Posted

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
Posted

Some screenshots of my Organizr setup 

 

 

58da4c6a5e373_Untitled.jpg

 

58da4ca532113_Untitled1.jpg

 

 

58da4cb5adc31_Untitled2.jpg

 

 

 

 

 

 

  • Like 1
Posted

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 :)

Posted

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

Posted

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
Posted (edited)

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
Posted

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>; 

Posted
proxy_hide_header X-Frame-Options;

You can also use this to hide the header.

Posted

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

Posted (edited)
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
Posted (edited)

@@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
Posted

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?

Posted

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
Posted

awesome changed all my hide headers and all is working

  • Like 2
schmitty
Posted

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

 

 

Sent from my iPhone using Tapatalk

schmitty
Posted (edited)

Yes @@causefx

 

 

Sent from my iPhone using Tapatalk

Edited by schmitty
Posted

v1.30 brings Emby to the Organizr homepage!

  • Like 2
Posted

woop woop

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...