Spaceboy 2494 Posted July 15, 2017 Share Posted July 15, 2017 How are your tabs setup? Are they USER access, or USER and GUEST? thanks, turning off the guest switches solved the first couple of issues. i set up the windows system variables so hopefully that stops the 502 errors from returning i also seem to be able to access organizr at domain/organizr now, no more broken login screen. homepage errors remain and... just to add some more. i wasnt able to get sab to show up on its tab. this morning headphones was also blank but i noticed an icon in the address bar about unsafe scripts being blocked. as its my own server i unblocked them and headphones came up. sab also comes up but the whole organizr sub domain is now showing as not secure. if i log out and back in again its back to https but sab and headphones tabs are blank again Link to comment Share on other sites More sharing options...
CBers 6771 Posted July 15, 2017 Share Posted July 15, 2017 thanks, turning off the guest switches solved the first couple of issues. i set up the windows system variables so hopefully that stops the 502 errors from returning i also seem to be able to access organizr at domain/organizr now, no more broken login screen. homepage errors remain and... just to add some more. i wasnt able to get sab to show up on its tab. this morning headphones was also blank but i noticed an icon in the address bar about unsafe scripts being blocked. as its my own server i unblocked them and headphones came up. sab also comes up but the whole organizr sub domain is now showing as not secure. if i log out and back in again its back to https but sab and headphones tabs are blank again Homepage errors? Which version of Organizr are you running? Are SABNZBD and HEADPHONES running via https? Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 15, 2017 Share Posted July 15, 2017 Homepage errors? Which version of Organizr are you running? Are SABNZBD and HEADPHONES running via https? since i've been using a reverse proxy i have everything directed to the http port on localhost. i turned https off on everything. sonarr radarr emby all working fine. i've no idea if this was the correct thing to do, i assumed it was because all the caddy config files proxy the connection to the http port and everything shows as secure if i access the service externally through the reverse proxy Homepage errors, well i've filled out the details in the homepage settings for sonarr, radarr and headphones but i see no sign of any info being delivered to the homepage. i can choose from music movies and tv in the drop down but nothing happed Link to comment Share on other sites More sharing options...
CBers 6771 Posted July 15, 2017 Share Posted July 15, 2017 I think the only information taken from Sonarr, Radarr and headphones is added to the calender. Have you added Emby to the homepage? You should see new TV, Movies or anything else you've enabled. Are you running v1.40? Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 15, 2017 Share Posted July 15, 2017 (edited) yes, running 1.4 for emby i see whats playing now and 1 row of new media. i see no sign of a calendar on the homepage. the dropdown for music, tv and movies and the buttons next to it don't seem to do anything either changing the system variables hasnt fixed the 502 errors for me. its back again and i'm having to restart caddy to fix it Edited July 15, 2017 by Spaceboy Link to comment Share on other sites More sharing options...
CBers 6771 Posted July 15, 2017 Share Posted July 15, 2017 Check the CALENDAR settings. Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 15, 2017 Share Posted July 15, 2017 Check the CALENDAR settings. well i see the calendar settings in edit homepage but this just seems like display settings. no enable /disable? i have changed some of these settings but i still see no calendar. i do see organizr homepage errors in the caddy window Link to comment Share on other sites More sharing options...
CBers 6771 Posted July 15, 2017 Share Posted July 15, 2017 well i see the calendar settings in edit homepage but this just seems like display settings. no enable /disable? i have changed some of these settings but i still see no calendar. i do see organizr homepage errors in the caddy window Might be time to speak to @@causefx on his Gitter channel. Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 15, 2017 Share Posted July 15, 2017 Might be time to speak to @@causefx on his Gitter channel. where are you seeing these calendar settings then? Link to comment Share on other sites More sharing options...
CBers 6771 Posted July 15, 2017 Share Posted July 15, 2017 where are you seeing these calendar settings then? The same as you, in the homepage settings. My calender is filled in for TV shows due to be aired and Movies due to be released. Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 15, 2017 Share Posted July 15, 2017 (edited) The same as you, in the homepage settings. My calender is filled in for TV shows due to be aired and Movies due to be released. and as far as you know i'm doing the right thing directing headphones and sab to their http port? yeah i've checked the line referenced in the errors in the caddy window and its line 2830 in functions.php. two lines above theres something about calendar, so i will take this to github Edited July 15, 2017 by Spaceboy Link to comment Share on other sites More sharing options...
CBers 6771 Posted July 15, 2017 Share Posted July 15, 2017 and as far as you know i'm doing the right thing directing headphones and sab to their http port? yeah i've checked the line referenced in the errors in the caddy window and its line 2830 in functions.php. two lines above theres something about calendar, so i will take this to github Try Gitter, as you'll get instant support. https://gitter.im/Organizrr/Lobby 1 Link to comment Share on other sites More sharing options...
Swynol 375 Posted July 16, 2017 Share Posted July 16, 2017 (edited) and as far as you know i'm doing the right thing directing headphones and sab to their http port? yeah i've checked the line referenced in the errors in the caddy window and its line 2830 in functions.php. two lines above theres something about calendar, so i will take this to github in organizr for the homepage. you should point the services to their external HTTPS address. example for emby would be https://mydomain.com/emby dont need to add any port numbers. or if it does ask for a port it will be 443 if you see no calendar or homepage tab you need to add it. edit tabs url = homepage.php Edited July 16, 2017 by Swynol 1 Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 16, 2017 Share Posted July 16, 2017 (edited) Ok I've turned off the https access on all of my services. That's why in the caddyfile they are all proxied to the http ports. Should I not have done this? In home page setup I have them pointed at localhost as that's what it showed in the examples Calendar is working now, just headphones and Sab tabs, headphones on homepage to go Edited July 16, 2017 by Spaceboy Link to comment Share on other sites More sharing options...
Swynol 375 Posted July 16, 2017 Share Posted July 16, 2017 (edited) ye you can remove port forwarding for all your services now https and http. only have port 80 and 443 pointing to your caddy server ip on your router. all external traffic will now go to caddy first then onto its destination. for example if you go to https://mydomain.com/emby it comes into your router on port 443. the router then knows to forward 443 to your caddy server which then works out that https://..../emby forwards to http://localhost:8096 so with organizr homepage, as far as im aware you specify the external address. because you are using a reverse proxy you specify https://mydomain.com/emby. if you werent using reverse proxy you would use https://mydomain.com:8920 or http://mydomain.com:8096 EDIT: sorry got the above wrong, for the tabs you specify the external address. the homepage works differently. you can specify http://localhost:{portnumber} or the external address, its up to you. I use external address but i have some clever setup with my router that if i am in my lan and i go to https://mydomain.com/emby rather than going out to the internet and back in it knows to resolve the name to my local lan. i.e https://mydomain.com/emby = https://192.168.1.10:8096 but if i am remoting in it resolves my WAN IP Edited July 16, 2017 by Swynol Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 22, 2017 Share Posted July 22, 2017 (edited) ye you can remove port forwarding for all your services now https and http. only have port 80 and 443 pointing to your caddy server ip on your router. all external traffic will now go to caddy first then onto its destination. for example if you go to https://mydomain.com/emby it comes into your router on port 443. the router then knows to forward 443 to your caddy server which then works out that https://..../emby forwards to http://localhost:8096 so with organizr homepage, as far as im aware you specify the external address. because you are using a reverse proxy you specify https://mydomain.com/emby. if you werent using reverse proxy you would use https://mydomain.com:8920 or http://mydomain.com:8096 EDIT: sorry got the above wrong, for the tabs you specify the external address. the homepage works differently. you can specify http://localhost:{portnumber} or the external address, its up to you. I use external address but i have some clever setup with my router that if i am in my lan and i go to https://mydomain.com/emby rather than going out to the internet and back in it knows to resolve the name to my local lan. i.e https://mydomain.com/emby = https://192.168.1.10:8096 but if i am remoting in it resolves my WAN IP hi and thanks, i think we are slightly talking at cross purposes! let me explain what i've done and you tell me where i've gone wrong. when i had ssl working previously i just used the https ports on all of the web services and had the same ports forwarded on my router. i had port 80 forwarded to my diskstation which was generating and renewing the cert. i was then manually inserting the cert into the various web services. i've since installed caddy, closed all port forwarding with the exception of my diskstation. port 443 and 80 are now forwarded to the pc that has caddy. i changed the ports on each of the web services back to the http version and in the caddyfile i proxy the connection to the http port. now organizr. the dev helped me make some changes to the caddyfile and now organizr is at the root of mydomain.com. i can still go to mydomain.com/service and access all of my web services (with the exception of headphones, i'll come back to that). in organizr i have sonarr, radarr, ombi and emby tabs just pointed at /sonarr etc and they work fine. sab and headphones do not. when sab is pointed at /sabnzbd then i get a security warning in the browser bar. if i accept the warning i get unsecure warnings on every site. if i use /mydomain/sabzbd for the tab i get a 404 error. the same for headphones. i think here i just need to find some security settings the dev provided me the equivalent for from nginx. i will find these. these: proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Ssl on; on the homepage settings sab is pointed at localhost:8087 and this works fine. headphones is pointed at localhost:8181 but i don't see any music showing up in the calendar. every other service pointed at localhost:port and these are working fine locally and remotely. i am also not clear on how headphones needs to be setup up for reverse proxy. previously i had the host as 0.0.0.0 to allow external access. not sure if i should now revert this to localhost and then i see that there are settings for the subdomain http_root and a switch for http_proxy but the documentation isnt very clear on how these should be used. i have previously had this running on /headphones but then i was getting an error i couldnt recover when saving config changes, so i've reinstalled. its now working on localhost:8181 but inaccessible externally or through organizr. cheers! Edited July 22, 2017 by Spaceboy Link to comment Share on other sites More sharing options...
Swynol 375 Posted July 25, 2017 Share Posted July 25, 2017 ah ok i think i follow. I cant test sabnz or headphones because i dont use either. the error with sabnz is a cert error, for some reason when you browse to sabnz your certificate doesnt like it, and then because your cert in untrusted on for the sabnz your browser then doesnt trust it for any of your other services until you close the browser and open new. what does your caddyfile look like now? particularly the sabnz entry? Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 25, 2017 Share Posted July 25, 2017 (edited) ah ok i think i follow. I cant test sabnz or headphones because i dont use either. the error with sabnz is a cert error, for some reason when you browse to sabnz your certificate doesnt like it, and then because your cert in untrusted on for the sabnz your browser then doesnt trust it for any of your other services until you close the browser and open new. what does your caddyfile look like now? particularly the sabnz entry? yep we're on the same page now at the moment both are just proxied to the http port. i'm focussing on sab and i've tried these headers: header_upstream X-Forwarded-Proto "https" header_upstream X-Forwarded-Ssl on i did some reading to try and find the caddy equivalents for the headers above but i'm not sure they are right. caddy starts fine but still nothing in the organizr tab Edited July 26, 2017 by Spaceboy Link to comment Share on other sites More sharing options...
Swynol 375 Posted July 26, 2017 Share Posted July 26, 2017 you can try these to see if it makes a difference proxy_header Host {host}proxy_header X-Real-IP {remote}proxy_header X-Forwarded-Proto {scheme} Link to comment Share on other sites More sharing options...
Swynol 375 Posted July 26, 2017 Share Posted July 26, 2017 (edited) been messing around with caddy today. couldnt get the above to work. had some success with header_upstream Host {host} header_upstream X-Real-IP {remote} header_upstream X-Forwarded-For {remote} header_upstream X-Forwarded-Proto {scheme} so my config is now mydomain.com { ext .html .htm .php root /caddy/www/organizr startup /caddy/php/php-cgi -b 127.0.0.1:9000 & fastcgi / localhost:9000 php gzip proxy /headphones localhost:8181 { transparent websocket header_upstream Host {host} header_upstream X-Real-IP {remote} header_upstream X-Forwarded-For {remote} header_upstream X-Forwarded-Proto {scheme} } proxy /sabnzbd localhost:8087 { transparent websocket header_upstream Host {host} header_upstream X-Real-IP {remote} header_upstream X-Forwarded-For {remote} header_upstream X-Forwarded-Proto {scheme} } header / { X-XSS-Protection "1; mode=block" X-Content-Type-Options "nosniff" X-Frame-Options "SAMEORIGIN" Strict-Transport-Security "max-age=31536000;" -server Referrer-Policy "strict-origin" } } Edited July 26, 2017 by Swynol 1 Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 26, 2017 Share Posted July 26, 2017 been messing around with caddy today. couldnt get the above to work. had some success with header_upstream Host {host} header_upstream X-Real-IP {remote} header_upstream X-Forwarded-For {remote} header_upstream X-Forwarded-Proto {scheme} so my config is now mydomain.com { ext .html .htm .php root /caddy/www/organizr startup /caddy/php/php-cgi -b 127.0.0.1:9000 & fastcgi / localhost:9000 php gzip proxy /headphones localhost:8181 { transparent websocket header_upstream Host {host} header_upstream X-Real-IP {remote} header_upstream X-Forwarded-For {remote} header_upstream X-Forwarded-Proto {scheme} } proxy /sabnzbd localhost:8087 { transparent websocket header_upstream Host {host} header_upstream X-Real-IP {remote} header_upstream X-Forwarded-For {remote} header_upstream X-Forwarded-Proto {scheme} } header / { X-XSS-Protection "1; mode=block" X-Content-Type-Options "nosniff" X-Frame-Options "SAMEORIGIN" Strict-Transport-Security "max-age=31536000;" -server Referrer-Policy "strict-origin" } } well this all works for me in caddy but i still have the same unsafe script errors in organizr. is this working for you in organizr and if so where are your tabs pointed? mine are still at localhost:8181 etc Link to comment Share on other sites More sharing options...
Swynol 375 Posted July 27, 2017 Share Posted July 27, 2017 ye seems to be working in organizr, havent added many tabs as i was just testing. i use the FQDN on my tabs so https://mydomain.com/emby no localhosts... but my setup is different as i have some black magic shit going on on my router that if any requests from my internal network to https://mydomain.com/emby gets routed internally to 192.168.x.x rather than going out on the internet and then come back inside. Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 28, 2017 Share Posted July 28, 2017 (edited) ye seems to be working in organizr, havent added many tabs as i was just testing. i use the FQDN on my tabs so https://mydomain.com/emby no localhosts... but my setup is different as i have some black magic shit going on on my router that if any requests from my internal network to https://mydomain.com/emby gets routed internally to 192.168.x.x rather than going out on the internet and then come back inside. ok great, if you have it working its worth pursuing! so... since making those changes to the caddyfile i cannot access headphones remotely through mydomain.com/headphones. the section for headphones is as follows: proxy /headphones localhost:8181 { transparent websocket header_upstream Host {host} header_upstream X-Real-IP {remote} header_upstream X-Forwarded-For {remote} header_upstream X-Forwarded-Proto {scheme} } the error in the caddy log says the target machine actively refused the connection I realised my prior issue with headphones was that you only seem to be able to run headphones on localhost or 0.0.0.0 for external access, not both simultaneously as you can with sonar etc Edited July 28, 2017 by Spaceboy Link to comment Share on other sites More sharing options...
Spaceboy 2494 Posted July 28, 2017 Share Posted July 28, 2017 ok working again now. in headphones the /headphones switch is set, otherwise i have left everything else as default so its running on localhost:8181. i can access through the reverse proxy at mydomain/headphones but still nothing in onganizr regardless of if i use /headphones or https://mydomain/headphones. i'm stumped. i'm also heading to see the remote firetv user tomorrow. i understand that you think this should just use https://mydomain/emby as the address, no port? thanks! Link to comment Share on other sites More sharing options...
pünktchen 1259 Posted July 28, 2017 Share Posted July 28, 2017 i'm also heading to see the remote firetv user tomorrow. i understand that you think this should just use https://mydomain/emby as the address, no port?Of course you have to input the port number into the specified field of the app. Either 443 if you use https or 80 if you use http only (which is then automatically turned into a secure connection). 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now