#Reverse proxy loading videos really slow (nginx proxy manager)

1 messages · Page 1 of 1 (latest)

past yacht
#

Hey everyone,

I am using nginx proxy manager for reverse proxy on my server here is the picture of it
I assigned a public wild card and the domain is from cloudflare

unique perchBOT
#

:wave: Hey @past yacht,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :blue_square: I have read applicable release notes.
  3. :blue_square: I have reviewed the FAQs for known issues.
  4. :blue_square: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
  7. :blue_square: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

past yacht
#

My immich videos play fast enough when local

#

or connecting to tailscale

#

from anywhere

#

except when using reverse proxy domain

past yacht
#

I am available to VC inorder to help fix this issue

feral onyx
#

What is 100.67? Is this tailscale?

#

You shouldn’t be pointing your proxy to a Tailscale IP

#

Also if you’re using CloudFlare proxy (orange cloud on) or tunnels you should turn that off as that can impact speed

past yacht
past yacht
#

I am happy to show my cloudflare settings on vc

#

as its just a bit too many to take picture of

feral onyx
#

Tunnels is not the same as proxy

#

We don’t do voice chat here

past yacht
#

I can screenshare

#

maybe no talk then

past yacht
#

I have a 4 core intel n100 with 16 gb ram mini pc

#

These are my immich settings for video transcoding

feral onyx
#

Please post a screenshot of your CloudFlare DNS entries

past yacht
#

I got better nginx custom config now aswell but its still slow a bit

#

location / {
# Proxy configuration using available Nginx Proxy Manager variables
proxy_pass $forward_scheme://$server:$port;

# Basic headers for forwarding
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;

# Disable caching headers to improve streaming performance
add_header Cache-Control no-cache;
add_header Pragma no-cache;

# Disable buffering for better live streaming performance
proxy_buffering off;

#client_max_body_size 500000M;
}

#

Its from chatGPT

untold igloo
#

chatgpt sucks at reverse proxy. It created a horribly wrong setup with nginx and certbot lmao

past yacht
#

do you have any better ones

#

@untold igloo

tropic nest
past yacht
#

Could you please send a link

unique perchBOT
past yacht
#

I switched from Nginx Proxy manager to nginx

#

it was fairly easy

#

do you guys have some good settings for video transcoding

#

on low end hardware

past yacht
tropic nest
past yacht
#

for me

#

when using from the web

#

local and the vpn connect is pretty good

#

but not from nginx rverse proxy

tropic nest
#

video transcoding isn't run on demand so it doesn't matter I believe

past yacht
#

I want it to use maximum efficiency when playing videos

#

also somehow I am getting server offline unknown when using reverse proxy

#

and online when using vpn or direct

tropic nest
past yacht
#

how

#

I dont know how to in nginx

#

I saw websocket option in nginx proxy manager but I dont use it now

past yacht
#

just spent yesterday of my life converting lol

#

nginx is not easy to use

#

atleast for me who came from a gui base

past yacht
unique perchBOT
tropic nest
#

we have the sample setup here

past yacht
#

i used it

#

for reverse proxy

#

I still have the same thing

#

nothing about websockets in here though

past yacht
#

do you recommend better https version like 1.3 or something in cloudflare too increase video streaming

feral onyx
#

the 4 lines after #enable websockets are for websockets 🙂

#

are you using cloudflare proxy..?

#

your nginx says server_name public_url ...?

#

you haven't configured the nginx settings at all

past yacht
past yacht
past yacht
feral onyx
#

Ok the issue could be related to cloudflare as well then

#

So its hard for us to help you

past yacht
#

I kept it to dns only

#

now

#

its working better than before

#

only thing is it is smooth for a bit at start

#

but takes time to load afterwards

tropic nest
#

What is your home upload speed?

past yacht
#

let me check

past yacht
feral onyx
#

Thats.. pretty slow :/

past yacht
#

thats ATTT

#

stupidly slow wifi

feral onyx
#

Your server is on wifi?

past yacht
#

no

#

lan

past yacht
feral onyx
#

With ethernet..?

past yacht
#

yes

feral onyx
#

Do you know what wifi means haha

past yacht
#

internet

feral onyx
#

Wireless. If youre using ethernet your server is not using wifi..

feral onyx
#

Which is good because wifi is bad for a server

#

Still, 27 is quite slow

past yacht
#

that speed is on my computer not on server

feral onyx
#

Alex wants to know the upload speed of your server
However 25 down is also pretty slow and could be the issue

past yacht
#

Fiber net is not available in my apartment

tropic nest
#

To stream video better you need better internet I am afraid

feral onyx
#

I understand but immich cannot make magic to have videos move faster than your internet

past yacht
#

are there any better immich settings

feral onyx
#

You might want to pick a lower video quality encoding setting and re run the jobs

past yacht
#

for video transcoding

past yacht
#

check the posts before

#

I have posted pictures

#

of settings

#

on server

#

with lan

#

or ethernet (whatever you call it)

feral onyx
#

You can try setting a max bitrate in addition to the resoution

feral onyx
#

Maybe 5000k max.

#

To make the files smaller

#

Maybe even 2500

past yacht
#

let me try

feral onyx
#

but i want to tell you that your internet is *very slow and your pings are also really bad

#

I would say minimum 100/100 internet with good pings is best for self hosting when you are outside home

#

so unfortunately it may not get much better

past yacht
#

ok