Set the add_header directive for Mastodon

This commit is contained in:
Benjamin Bach 2024-08-04 00:34:39 +02:00
parent 5502870384
commit 61a6ee3ba8
No known key found for this signature in database
GPG key ID: 486F0D69C845416E

View file

@ -1,2 +1,9 @@
listen 3000; listen 3000;
client_max_body_size 50M; # default is 1M client_max_body_size 50M; # default is 1M
# Mastodon needs to allow all clients to access stuff.
# This can be tweaked to only allow images/videos and certain HTTP methods like
# add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';
# add_header 'Access-Control-Allow-Headers' 'Range';
# add_header 'Accept-Ranges' 'bytes';
add_header Access-Control-Allow-Origin *;