[GH-ISSUE #936] Some asset take so much time to load when became behind revece proxy #415

Open
opened 2026-02-25 23:34:11 +03:00 by kerem · 5 comments
Owner

Originally created by @Monirzadeh on GitHub (Jun 8, 2024).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/936

Data

  • Shiori version: 1.7.0
  • Database Engine: PG
  • Operating system: linux
  • CLI/Web interface/Web Extension: Web interface

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.

Originally created by @Monirzadeh on GitHub (Jun 8, 2024). Original GitHub issue: https://github.com/go-shiori/shiori/issues/936 ## Data - **Shiori version**: 1.7.0 - **Database Engine**: PG - **Operating system**: linux - **CLI/Web interface/Web Extension**: Web interface ## 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.
Author
Owner

@fmartingr commented on GitHub (Jun 9, 2024):

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

<!-- gh-comment-id:2156693893 --> @fmartingr commented on GitHub (Jun 9, 2024): How did you measure page load? Can you provide your nginx config and logs?
Author
Owner

@Monirzadeh commented on GitHub (Jun 10, 2024):

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

<!-- gh-comment-id:2159019359 --> @Monirzadeh commented on GitHub (Jun 10, 2024): 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`
Author
Owner

@fmartingr commented on GitHub (Aug 27, 2024):

Do you have asset caching enabled in your config? If shiori works well when accessing it directly but not using the nginx proxy manager in front of it, it's probably nginx fault or missconfiguration.

<!-- gh-comment-id:2313065974 --> @fmartingr commented on GitHub (Aug 27, 2024): Do you have asset caching enabled in your config? If shiori works well when accessing it directly but not using the nginx proxy manager in front of it, it's probably nginx fault or missconfiguration.
Author
Owner

@Monirzadeh commented on GitHub (Aug 27, 2024):

when i active asset caching things get better (loading fonts have delay but better than before)

<!-- gh-comment-id:2313184313 --> @Monirzadeh commented on GitHub (Aug 27, 2024): when i active asset caching things get better (loading fonts have delay but better than before)
Author
Owner

@fmartingr commented on GitHub (Aug 28, 2024):

Maybe something related to #968 ?

<!-- gh-comment-id:2314370204 --> @fmartingr commented on GitHub (Aug 28, 2024): Maybe something related to #968 ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shiori#415
No description provided.