Compare commits

...

6 commits

Author SHA1 Message Date
Laura Hausmann dbd65a335a
[docs] Add postgresql-contrib to installation requirements 2024-03-21 14:41:07 +01:00
Laura Hausmann 01fbd1a5c7
[backend] Fix video playback for files hosted from different origins 2024-03-18 15:34:14 +01:00
Jegler b1b9616572
Add support for decoding AVIF images 2024-03-14 16:59:04 +01:00
Norm c8704f4517 [docs] Enable gzip compression in example nginx config
This should help reduce the bandwith usage of Iceshrimp when using
Nginx.

The `gzip_types` setting is copied from Akkoma's nginx config:
889b57df82/installation/nginx/akkoma.nginx (L66)
2024-03-14 00:18:21 -04:00
Laura Hausmann 0022e9d0e0
Update README.md 2024-03-07 17:44:17 +01:00
CookiLover311 ccec3e7e63 [mastodon-client] Add default reaction to /v1/instance 2024-03-01 14:25:41 +01:00
6 changed files with 11 additions and 4 deletions

View file

@ -35,7 +35,7 @@ FROM alpine:3.18
WORKDIR /iceshrimp
# Install runtime dependencies
RUN apk add --no-cache --no-progress tini ffmpeg vips-dev zip unzip nodejs-current
RUN apk add --no-cache --no-progress tini ffmpeg vips-dev zip unzip nodejs-current libheif-dev
# Copy built files
COPY --from=build /iceshrimp /iceshrimp

View file

@ -43,7 +43,7 @@ It was forked from <del>Calckey</del> Firefish (itself a fork of Misskey) in mid
- Please note that we do not operate a "flagship instance", the only project-affiliated domain is `iceshrimp.dev`.
- Want to donate to the project?
- Our backend lead dev (zotan) is in need of a better laptop, as their current one does not have enough memory. You can contribute [here](https://bunq.me/zotanlaptopcrowdfund). Any leftover money will be given to queers in need.
- Need help or want to contribute? Join the [matrix room](https://matrix.to/#/%23iceshrimp-dev:161.rocks)!
- Need help or want to contribute? Join the [chat room](https://chat.iceshrimp.dev)!
---

View file

@ -47,6 +47,12 @@ server {
# Change to your upload limit
client_max_body_size 80m;
# Gzip compression
gzip on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/activity+json application/atom+xml;
# Proxy to Node
location / {
proxy_pass http://127.0.0.1:3000;

View file

@ -13,7 +13,7 @@ This document will guide you through manual installation of Iceshrimp. We also p
### Required
- [**Node.js**](https://nodejs.org) v18.16.0+ (v20 recommended)
- [**PostgreSQL**](https://www.postgresql.org/) 12+
- [**PostgreSQL**](https://www.postgresql.org/) 12+ (including modules, usually packaged as postgresql-contrib)
- [**Redis**](https://redis.io/) 6+
- [**libvips**](https://www.libvips.org/)
- **Web proxy**

View file

@ -87,6 +87,7 @@ export class MiscHelpers {
},
reactions: {
max_reactions: 1,
default_reaction: meta.defaultReaction,
},
},
contact_account: contact,

View file

@ -469,7 +469,7 @@ router.get("/notes/:note", async (ctx, next) => {
ctx.set("Cache-Control", "public, max-age=15");
ctx.set(
"Content-Security-Policy",
"default-src 'self' 'unsafe-inline'; img-src *; frame-ancestors *",
"default-src 'self' 'unsafe-inline'; img-src *; media-src *; frame-ancestors *",
);
return;