go-shiori / shiori

Simple bookmark manager built with Go
MIT License
8.99k stars 544 forks source link

Some asset take so much time to load when became behind revece proxy #936

Open Monirzadeh opened 1 month ago

Monirzadeh commented 1 month ago

Data

Describe the bug / actual behavior

i have a shiori instance on a local network behind nginix reverse proxy (to have subdomain in local network) when i try to load shiori (in new tab) it take time for the first time load.

profiling show me assets/css/libs/fonts/fa-solid-900.woff2 take around 5935ms to load. i am not sue i need specific settings in nginix reverse proxy or problem in shiori that create conflict.

Notes

if i open this directly with ip fonts load fast.

fmartingr commented 4 weeks ago

How did you measure page load? Can you provide your nginx config and logs?

Monirzadeh commented 4 weeks ago

in Firefox Web Developer tools -> Performance tab with Settings on Networking.

about ngnix proxy manager i don't use that for outside accesses. in this network just config for user in to use subdomain in this network that point to selfhosted service. so user --> router --> ngnix proxy manager ip (for example 192.168.1.10:80) --> forward to specific ip (for example 192.168.1.10:8080 that is ip of shiori in network)

in Ngnix proxy manager you can setup in Proxy Hosts