diff --git a/README.md b/README.md index 6a4f342..9b44fab 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,9 @@ Here is a tutorial [on how to do this with nginx](https://www.digitalocean.com/c - [safe.fiery.me](https://safe.fiery.me): Just another clone. - [kayo.pics](https://kayo.pics): File hosting for all~ - [dmca.gripe](https://dmca.gripe): a dmca-resistant, permanent file hosting service. +- [succmy.wang](https://succmy.wang): A private clone with a funny name +- [i-want-to.2dgirls.date](https://i-want-to.2dgirls.date): A clone that screams what you want +- [namir.in](https://namir.in): A private clone dedicated to best girl. - Feel free to add yours here. ## Author diff --git a/config.sample.js b/config.sample.js index c8f3143..3005c2d 100644 --- a/config.sample.js +++ b/config.sample.js @@ -58,9 +58,17 @@ module.exports = { '.com', '.bat', '.cmd', + '.nt', '.scr', '.ps1', - '.sh' + '.psm1', + '.sh', + '.bash', + '.bsh', + '.csh', + '.bash_profile', + '.bashrc', + '.profile' ], /* diff --git a/nginx-ssl.sample.conf b/nginx-ssl.sample.conf index 97ba722..41cc093 100644 --- a/nginx-ssl.sample.conf +++ b/nginx-ssl.sample.conf @@ -2,6 +2,10 @@ upstream backend { server 127.0.0.1:9999; # Change to the port you specified on lolisafe } +map $sent_http_content_type $charset { + ~^text/ utf-8; +} + server { listen 80; listen [::]:80; @@ -13,7 +17,8 @@ server { listen 443 ssl http2; listen [::]:443 ssl http2; - server_name lolisafe.moe; + server_name lolisafe.moe; + server_tokens off; ssl_certificate /path/to/your/fullchain.pem; ssl_certificate_key /path/to/your/privkey.pem; @@ -21,6 +26,9 @@ server { client_max_body_size 100M; # Change this to the max file size you want to allow + charset $charset; + charset_types *; + # Uncomment if you are running lolisafe behind CloudFlare. # This requires NGINX compiled from source with: # --with-http_realip_module diff --git a/nginx.sample.conf b/nginx.sample.conf index 86d1f1b..6da3429 100644 --- a/nginx.sample.conf +++ b/nginx.sample.conf @@ -2,14 +2,22 @@ upstream backend { server 127.0.0.1:9999; # Change to the port you specified on lolisafe } +map $sent_http_content_type $charset { + ~^text/ utf-8; +} + server { listen 80; listen [::]:80; - server_name lolisafe.moe; + server_name lolisafe.moe; + server_tokens off; client_max_body_size 100M; # Change this to the max file size you want to allow + charset $charset; + charset_types *; + # Uncomment if you are running lolisafe behind CloudFlare. # This requires NGINX compiled from source with: # --with-http_realip_module