Browse Source

Merged changes from master

Summary:
* Added 3 new sites to README.md.
* Added some new file extensions to filter.
* Some additions to nginx sample conf files.

Changes such as delete buttons and whatnots for the dashboard were not added.
Bobby Wibowo 1 year ago
parent
commit
0b6df9efe4
4 changed files with 30 additions and 3 deletions
  1. 3 0
      README.md
  2. 9 1
      config.sample.js
  3. 9 1
      nginx-ssl.sample.conf
  4. 9 1
      nginx.sample.conf

+ 3 - 0
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

+ 9 - 1
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'
   ],
 
   /*

+ 9 - 1
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

+ 9 - 1
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