mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 08:58:36 +01:00
feat: add nginx media & cdn from web1
This commit is contained in:
16
roles/docker-deployments/files/cdn.conf
Normal file
16
roles/docker-deployments/files/cdn.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
server {
|
||||
autoindex on;
|
||||
autoindex_localtime on;
|
||||
|
||||
listen 5051;
|
||||
root /var/www/cdn/;
|
||||
|
||||
add_header Vary Accept-Encoding;
|
||||
add_header Access-Control-Allow-Origin $http_origin;
|
||||
|
||||
location /videos/{
|
||||
default_type video/mp4;
|
||||
limit_rate 2m;
|
||||
autoindex on;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user