Skip to content
This repository was archived by the owner on Jun 7, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions roles/nginx/files/production/nginx/sites-available/lobste.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ server {
break;
}

location ~ ^/(apple-touch-icon|touch-icon).*\.png$ {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want favicon.ico covered too? I noticed it also lacks Cache-Control headers. Left it off here 'cause you didn't explicitly mention it in the ticket, though.

include "snippets/abuse-*.conf"; # https://github.com/lobsters/lobsters/issues/761#issuecomment-2509149290

expires max;
add_header Cache-Control public;
break;
}

# max upload size for avatars (the only upload the site takes now)
client_max_body_size 2M;

Expand Down