Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Monirzadeh opened this issue Jun 8, 2024 · 5 comments
Open
Labels
type:bug Something isn't working

Comments

@Monirzadeh
Copy link
Collaborator

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.

@Monirzadeh Monirzadeh added the type:bug Something isn't working label Jun 8, 2024
@github-project-automation github-project-automation bot moved this to To do in Roadmap Jun 8, 2024
@Monirzadeh Monirzadeh changed the title Some asset take so much time when became behind revece proxy Some asset take so much time to load when became behind revece proxy Jun 8, 2024
@fmartingr
Copy link
Member

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

@Monirzadeh
Copy link
Collaborator Author

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

@fmartingr
Copy link
Member

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.

@Monirzadeh
Copy link
Collaborator Author

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

@fmartingr
Copy link
Member

Maybe something related to #968 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

2 participants