An open API service indexing awesome lists of open source software.

https://github.com/zxce3/files

my files collections
https://github.com/zxce3/files

collection files game nginx nginx-file-index pdf

Last synced: about 2 months ago
JSON representation

my files collections

Awesome Lists containing this project

README

          

# Hello There

This is where my file collection is.

## Nginx Config

this config for directory listing on nginx

```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?

- [Saweria](https://saweria.co/example)
- [Github Sponsors](https://github.com/sponsors/example)