• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions redirect to https on mobile app

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    redirect to https on mobile app

    robertkwild
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2025 Mar
    Reputation: 0
    #1
    2025-03-24, 05:11 PM
    hi all,

    new to jellyfin here and so far so good, i followed this guide to make it https

    https://jellyfin.org/docs/general/quick-start/windows/

    just missed the duckdns part as i have a dynu account with opnsense plugin and for the task scheduler i just made a simple bat and ps1 script

    in "shell:startup" i have a bat file

    powershell -File "C:\Program Files\caddy\jellyfin.ps1"

    and my ps1 file is

    cd 'C:\Program Files\caddy\'
    start-process -windowstyle hidden caddy run

    on a wan pc to access my jellyfin server if i type in

    my.domain.com/jellyfin

    it redirects me to

    https://my.domain.com/jellyfin

    but on the mobile app it doesnt redirect me as if i look at my server in settings it says http?

    thanks,
    rob
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-03-24, 06:25 PM
    Jellyfin will be configured for http since Caddy is handling https. Did you set the bareurl setting in Jellyfin? What does your caddyfile look like?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    robertkwild
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2025 Mar
    Reputation: 0
    #3
    2025-03-25, 09:07 AM
    hi,

    my caddyfile looks like this

    my.domain.com

    redir /jellyfin /jellyfin/
    reverse_proxy /jellyfin/* 127.0.0.1:8096

    as in my jellyfin server i have put in /jellyfin in my baseurl

    so the reason its not redirecting is it because it cant redirect from http to https on the mobile app but it can on the web as caddy is redirecting it?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-03-25, 12:56 PM
    I don't recall if the app can handle redirects like that.

    Does the app connect when you type out the entire address, including the protocol and the full sub-path?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    robertkwild
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2025 Mar
    Reputation: 0
    #5
    2025-03-25, 02:18 PM (This post was last modified: 2025-03-25, 02:20 PM by robertkwild. Edited 1 time in total.)
    well it looks like the app cant handle redirects, redirects only work on web using caddy as that handles it instead

    and the app connects only using the sub path, you having to put in https otherwise it will connect you via http

    you think its possible for the app to handle redirects?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-03-25, 02:31 PM
    Which OS is your phone running? iOS or Android?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    robertkwild
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2025 Mar
    Reputation: 0
    #7
    2025-03-25, 02:34 PM
    im running ios
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2025-03-25, 02:46 PM
    I got clarification from the devs. Redirects are potentially malicious so we explicitly do not follow redirects in our apps for both iOS and Android.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    robertkwild
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2025 Mar
    Reputation: 0
    #9
    2025-03-25, 03:16 PM (This post was last modified: 2025-03-25, 03:19 PM by robertkwild. Edited 1 time in total.)
    thanks for confirming, much appreciated

    then if thats the case my NAT allows port 80 (http) and 443 (https)

    obviously caddy needs both ports open, port 80 for letsencrypt renewel and 443 for web browsing

    is there anyway to make port 80 to not show a page ie jellyfin and have it just for renewal
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2025-03-25, 03:22 PM
    If you are using Caddy, you do NOT need port 80 open as it can do TLS-ALPN challenges and is the default challenge type.

    https://caddyserver.com/docs/automatic-h...-challenge

    Close port 80. Solves both problems.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Pages (2): 1 2 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode