Organizr / Config-Collections-for-Nginx

A Collection of Functioning Nginx Configurations
GNU General Public License v3.0
155 stars 25 forks source link

Ombi V4 and Tdarr #21

Open Majibear opened 4 years ago

Majibear commented 4 years ago

I don't suppose you have a working subfolder config for Ombi V4? Nothing I'm doing seems to work, it just rests on a blank white page.

Also the reverse proxies provided by Tdarr don't seem to work either. I've tried all sorts of configurations for that and it just won't resolve.

jrdnlc commented 4 years ago

Did you clear cache? Checked console errors?

Majibear commented 4 years ago

Ombi started working this morning. I had cleared the cache a few times earlier because I read the same thing on a reddit post, but it did nothing at first. Just leaving it going overnight somehow solved it.

I am still having issues with Tdarr though, no matter what entry I put in, Nginx refuses it. This is what I have:

location /tdarr {
    auth_request /auth-0;

    add_header X-Frame-Options "SAMEORIGIN";
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Host $server_name;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Ssl on;
    proxy_set_header X-Forwarded-Proto $scheme;

    proxy_pass http://127.0.0.1:8265;
    proxy_redirect http://127.0.0.1:8265 https://$host;
}

Any ideas?

jrdnlc commented 4 years ago

Did you add the base url for tdarr and the docker url variable?

Majibear commented 4 years ago

I added the base url, I'm also not using docker.

jrdnlc commented 4 years ago

What are you using then?

Majibear commented 4 years ago

I'm on Windows 10, using the Nginx Organizr Windows Installer.

jrdnlc commented 4 years ago

What does the console say when you try to load tdarr?

Majibear commented 4 years ago

The console says nothing. It's working on Localhost, just not over reverse proxy.

For some reason when using the above config, if I add a second bracket to close off the syntax, Nginx gives the error 'nginx: [emerg] unexpected "}" in C:/nginx/conf/rp-subfolder.conf:170', and then and won't initialize. If I remove the bracket Nginx starts, but I get a blank page.

jrdnlc commented 4 years ago

Try this

tdarr redirect

location /tdarr {
    return 301 /tdarr/;
}

tdarr containter

location /tdarr/ {
    auth_request /auth-0;
    proxy_pass http://10.0.0.18:8265/tdarr/;
    include /config/nginx/proxy.conf;
}
Majibear commented 4 years ago

So just the tdarr redirect in my case? I don't have a proxy.conf in my set up?

Majibear commented 4 years ago

Is there any specific reason I would be getting the following error?: ginx: [emerg] unexpected "}" in C:/nginx/conf/rp-subfolder.conf:167

I'm receiving this error if I close off the syntax entry with a bracket, where as every other entry for other services works fine. If I don't close off other entries with double brackets they don't work either.

Example:

location /tautulli {
        proxy_pass http://127.0.0.1:8181;
    }
}
    location /tdarr {
        proxy_pass http://127.0.0.1:8265;
    }
}

Forgive the naivety. I'm failing to see where the issue is here with Tdarr.

HalianElf commented 4 years ago

The issue you're having is you have extra brackets:

location /tautulli {
        proxy_pass http://127.0.0.1:8181;
    } # <= here
} 
    location /tdarr {
        proxy_pass http://127.0.0.1:8265;
    } # <= and here
}
IamCage commented 3 years ago

sorry for stupid question, but where to put this *.conf from folder "Subdomains" thank you in advance.