franklindyer / agora-app

Simple and (hopefully) secure social media application. Also a project for spring 2024 CS 444 cybersecurity class at UNM.
4 stars 1 forks source link

Image loading is fucky #65

Closed altheaden closed 4 months ago

altheaden commented 6 months ago

Images load slowly (with a significant flash of alt text), and sometimes don't load at all (and only show alt text).

altheaden commented 5 months ago

Update: we will probably host images with nginx instead of flask to attempt to better this issue.

franklindyer commented 5 months ago

@altheaden As you said this isn't an issue with anything present in this repo. However, I think I've figured out what needs to be done to fix this on the server. We should add the following to the nginx config for our site:

location /userimg {
   alias /absolute/path/to/the/images
}
franklindyer commented 5 months ago

Went ahead and fixed this on the server. Let me know if it's still slow for you - I think it's significantly quicker for me.

altheaden commented 4 months ago

Seems to work well for me now, too.