Jump to content

jwilder/nginx-proxy and accessing Emby via /emby URL


pentago

Recommended Posts

I'm trying to configure jwilder/nginx-proxy Docker image to be able to access my Emby instance via http://ip/emby URL.

Now, Im not sure if this is even possible but I'm assuming it is, particularily with using dev branch image tag (jwilder/nginx-proxy:dev-alpine)

 

Does anyone has experience with this reverse proxy setup and proxying the URL rather than subdomain?

Any suggestion might help, thanks!

Link to comment
Share on other sites

pir8radio
12 hours ago, pentago said:

I'm trying to configure jwilder/nginx-proxy Docker image to be able to access my Emby instance via http://ip/emby URL.

Now, Im not sure if this is even possible but I'm assuming it is, particularily with using dev branch image tag (jwilder/nginx-proxy:dev-alpine)

 

Does anyone has experience with this reverse proxy setup and proxying the URL rather than subdomain?

Any suggestion might help, thanks!

sub directory will give you issues almost always..  Sub domain is a lot cleaner and all features work using sub domain.    

Link to comment
Share on other sites

I Use Swag Proxy (nginx LE Fail2ban proxy) and they have an example proxy config for subfolder, i post this as an example, that they use for their container so it may give you some pointers, i doubt it would work direct on your reverse proxy but it will give you an idea

 

## Version 2021/05/18
# make sure that your dns has a cname set for emby
# if emby is running in bridge mode and the container is named "emby", the below config should work as is
# if not, replace the line "set $upstream_app emby;" with "set $upstream_app <containername>;"
# or "set $upstream_app <HOSTIP>;" for host mode, HOSTIP being the IP address of emby
# in emby settings, under "Advanced" change the public https port to 443, leave the local ports as is, set the "external domain" to your url and subdomain,
# and set the "Secure connection mode" to "Handled by reverse proxy"

location /emby {
    return 301 $scheme://$host/emby/;
}

location ^~ /emby/ {
    include /config/nginx/proxy.conf;
    include /config/nginx/resolver.conf;
    set $upstream_app emby;
    set $upstream_port 8096;
    set $upstream_proto http;
    proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    proxy_set_header Range $http_range;
    proxy_set_header If-Range $http_if_range;
}

location ^~ /embywebsocket {
    include /config/nginx/proxy.conf;
    include /config/nginx/resolver.conf;
    set $upstream_app emby;
    set $upstream_port 8096;
    set $upstream_proto http;
    proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}

 

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