mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 10:38:33 +01:00
29 lines
507 B
Plaintext
29 lines
507 B
Plaintext
map $http_x_nginx_cert_auth $basic_auth_val {
|
|
default "private";
|
|
true off;
|
|
}
|
|
|
|
server {
|
|
|
|
|
|
autoindex on;
|
|
autoindex_localtime on;
|
|
|
|
listen 5052;
|
|
root /var/www/media;
|
|
|
|
add_header Vary Accept-Encoding;
|
|
add_header Access-Control-Allow-Origin $http_origin;
|
|
|
|
location /videos/{
|
|
default_type video/mp4;
|
|
limit_rate 2m;
|
|
autoindex on;
|
|
}
|
|
|
|
location /auth/{
|
|
auth_basic $basic_auth_val;
|
|
auth_basic_user_file /etc/nginx/htpasswd_1;
|
|
}
|
|
}
|