Giter Site home page Giter Site logo

Comments (12)

JustAMan avatar JustAMan commented on July 23, 2024

cc @mcarlton00 @joshuaboniface

from jellyfin-docs.

mcarlton00 avatar mcarlton00 commented on July 23, 2024

Admittedly, Apache is the one that I'm the least familiar with. I copied the config that @sauerj provided and tested it locally to make sure it works. It sounds like you possibly didn't enable the extra modules from the section that's under the main code block for Apache. Try running a2enmod proxy proxy_http ssl and then restart Apache. Sometimes these are included by default, sometimes they need to be a manual step. I think it depends on which distro you're using.

As for improvements:

  • running http server + own domain name

The docs are outlining how to set up a http server, so I'm not sure that should necessarily be a requirement. I hesitate to include installation instructions just because of how much variance there is between distros and package managers. We probably should make a note about the domain name, though. It's really only strictly necessary if people are accessing the server from outside their local network, but it's almost certainly the most common use case we'll see.

  • machine running jellyfin is also the machine running the reverse proxy
  • highlight which part of code snippet should be adapted

I think these are actually a single point, but two different variables. I work with these things every day so it's obvious to me what needs to be changed, but looking at it now I agree that it could be clearer for the average user. Possibly replace the values in the code blocks with something like $SERVER_IP_ADDRESS and $DOMAIN_NAME so they stand out, and make a note of it in the beginning explanation.

The same could possibly be said for the SSL cert. I'm going off the assumption that the large majority of users will be using LetsEncrypt, but it could potentially be changed to /path/to/your/ssl/certificate instead of assuming.

I'll let @joshuaboniface weigh in as well. I won't have time to update anything until at least this weekend, possibly longer.

from jellyfin-docs.

pyluyten avatar pyluyten commented on July 23, 2024

The docs are outlining how to set up a http server, so I'm not sure that should necessarily be a requirement. [...] We probably should make a note about the domain name, though.

Fair to me. Maybe include a note, this needs both setup on the DNS provider + on the http server.

Possibly replace the values in the code blocks with something like $SERVER_IP_ADDRESS and $DOMAIN_NAME so they stand out, and make a note of it in the beginning explanation.

It would have helped me because i knew I needed to change thoses but i did not know if i needed to change others parts.

The same could possibly be said for the SSL cert

yes also i bet some people have cert including domain + subdomains.

Try running a2enmod proxy proxy_http ssl and then restart Apache


# a2enmod proxy proxy_http
Module proxy already enabled
Considering dependency proxy for proxy_http:
Module proxy already enabled
Module proxy_http already enabled

Also tried proxy_html.

from jellyfin-docs.

pyluyten avatar pyluyten commented on July 23, 2024

by the way for some reason, my setup does now work. Only thing i did in the meantime was to test from local machine 127.0.0.1:8096 . Did this test actually performed something?

from jellyfin-docs.

JustAMan avatar JustAMan commented on July 23, 2024

Maybe you restarted Apache in the meantime, and it fixed something it didn't read in your configuration for the first time?

from jellyfin-docs.

pyluyten avatar pyluyten commented on July 23, 2024

@JustAMan just checked, after last restart (basically each time i tried to load a proxy_xxx module) i was still trying to acess, with no luck. And the site config has not changed neither. Anyway i propose to keep the bug opened regarding the documentation which may be improved.

from jellyfin-docs.

pyluyten avatar pyluyten commented on July 23, 2024

The reason it did not work is just Firefox 65.0.2 (64-bit). Firefox on Android works, Chrome works, but not this version.. Which is why i could not figure what i changed server side, indeed nothing.

from jellyfin-docs.

mcarlton00 avatar mcarlton00 commented on July 23, 2024

I have Firefox 65.0.2 on linux, and I was able to load up the Web UI and start a stream through an Apache proxy while testing. Could it be a bad cookie or something in your browser that isn't letting the page load? Can you try it in private browsing mode?

from jellyfin-docs.

pyluyten avatar pyluyten commented on July 23, 2024

@mcarlton00 , sorry i missed this! Some clearing in firefox persistent data and it works now (even in normal mode).

before it worked i also wondered : "now i wrote the apache snippet, what am i supposed to do?" It is fair to assume user knows to "a2ensite" , but it may be worth explaining then it is just necessary to visit the jellyfin.DOMAIN_NAME with browser. Otherwise if it does not work, user may believe other prerequisites / steps are missing. (eg among others i tried to navigate to https://jellyfin.DOMAIN_NAME/embywebsocket )

from jellyfin-docs.

miket6000 avatar miket6000 commented on July 23, 2024

Just adding that as well as the listed proxy_http module, I also needed to enable the proxy_wstunnel module before this worked for me. I don't see any harm in mentioning this along with the other require modules. This may have been related to other users issues with the /embysocket forwarding issue.

from jellyfin-docs.

JustAMan avatar JustAMan commented on July 23, 2024

@miket6000 can you make a PR to Apache section about adding that module?

from jellyfin-docs.

stophecom avatar stophecom commented on July 23, 2024

More of a side note, but it might be helpful to include a hint to services like https://ngrok.com/ in the docs.

from jellyfin-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.