This is where my file collection is.
this config for directory listing on nginx
server {
listen 80;
listen [::]:80;
listen 443 ssl;
listen [::]:443 ssl;
server_name files.example.net;
root /home/memet/files;
ssl_certificate /etc/letsencrypt/live/example.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.net/privkey.pem;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
location = /health {
types {}
default_type text/plain;
return 200 "OK";
}
location /json{
autoindex on;
autoindex_format jsonp;
default_type application/json;
expires -1;
alias /home/memet/files/;
autoindex_localtime on;
}
location / {
alias /home/memet/files/;
expires -1;
autoindex on;
autoindex_exact_size on;
autoindex_format html;
default_type text/plain;
add_before_body /.header.html;
add_after_body /.footer.html;
autoindex_localtime on;
}
}
Want to buy me coffee?