From b08cc2c6bb1152c9b606bb3cb15157d0af319757 Mon Sep 17 00:00:00 2001 From: Kayo Date: Sat, 28 Apr 2018 01:46:10 -0700 Subject: [PATCH 01/15] fixed url --- pages/auth.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/auth.html b/pages/auth.html index c2e1799..b69c2e1 100644 --- a/pages/auth.html +++ b/pages/auth.html @@ -28,7 +28,7 @@ - + lolisafe - A small safe worth protecting. From 94e24f3c5db50f7e89938e0b389be93da4241b44 Mon Sep 17 00:00:00 2001 From: RyoshiKayo Date: Sat, 28 Apr 2018 05:12:25 -0400 Subject: [PATCH 02/15] Fixed more urls --- pages/album.html | 2 +- pages/auth.html | 2 +- pages/dashboard.html | 2 +- pages/faq.html | 2 +- pages/home.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/album.html b/pages/album.html index afdaaf9..cc4d2de 100644 --- a/pages/album.html +++ b/pages/album.html @@ -27,7 +27,7 @@ - + lolisafe - A small safe worth protecting. diff --git a/pages/auth.html b/pages/auth.html index c2e1799..b69c2e1 100644 --- a/pages/auth.html +++ b/pages/auth.html @@ -28,7 +28,7 @@ - + lolisafe - A small safe worth protecting. diff --git a/pages/dashboard.html b/pages/dashboard.html index b618f45..c5e5fe4 100644 --- a/pages/dashboard.html +++ b/pages/dashboard.html @@ -28,7 +28,7 @@ - + lolisafe - A small safe worth protecting. diff --git a/pages/faq.html b/pages/faq.html index 033c573..94f1b54 100644 --- a/pages/faq.html +++ b/pages/faq.html @@ -27,7 +27,7 @@ - + lolisafe - A small safe worth protecting. diff --git a/pages/home.html b/pages/home.html index 947a4a7..dd2fac8 100644 --- a/pages/home.html +++ b/pages/home.html @@ -27,7 +27,7 @@ - + lolisafe - A small safe worth protecting. From 92efc7bf17cee05c4782d571ca0ff4e37758bfa7 Mon Sep 17 00:00:00 2001 From: Nadya <4567166+NadyaNayme@users.noreply.github.com> Date: Sat, 12 May 2018 19:17:21 -0700 Subject: [PATCH 03/15] Add Delete to Album View QOL change. --- public/js/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/dashboard.js b/public/js/dashboard.js index a4de774..e6c3188 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -142,7 +142,7 @@ panel.getUploads = function(album = undefined, page = undefined){ var div = document.createElement('div'); div.className = "column is-2"; if(item.thumb !== undefined) - div.innerHTML = ``; + div.innerHTML = ` `; else div.innerHTML = `

.${item.file.split('.').pop()}

`; table.appendChild(div); From ef4e7755ae8f714596398d53afd9a7d4044cc075 Mon Sep 17 00:00:00 2001 From: Nadya <4567166+NadyaNayme@users.noreply.github.com> Date: Sat, 12 May 2018 19:19:38 -0700 Subject: [PATCH 04/15] Styles for Album View Delete --- public/css/style.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/css/style.css b/public/css/style.css index ac3959d..695a1d9 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -102,8 +102,9 @@ section#auth input, section#auth a { } section#dashboard .table { font-size: 12px } -section#dashboard div#table div.column { display:flex; width: 200px; height: 200px; margin: 9px; background: #f9f9f9; overflow: hidden; align-items: center; } +section#dashboard div#table div.column { display:flex; width: 200px; height: 200px; margin: 9px; background: #f9f9f9; overflow: hidden; flex-wrap: wrap; align-items: center; } section#dashboard div#table div.column a { width: 100%; } +section#dashboard div#table div.column a:first-child { height: 180px; } section#dashboard div#table div.column a img { width:200px; } .select-wrapper { From ba6b3764dcb8d81f66262283bd25327c73045612 Mon Sep 17 00:00:00 2001 From: Nadya <4567166+NadyaNayme@users.noreply.github.com> Date: Sat, 12 May 2018 19:25:19 -0700 Subject: [PATCH 05/15] Fix typo --- public/js/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/dashboard.js b/public/js/dashboard.js index e6c3188..8afc89d 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -142,7 +142,7 @@ panel.getUploads = function(album = undefined, page = undefined){ var div = document.createElement('div'); div.className = "column is-2"; if(item.thumb !== undefined) - div.innerHTML = ` `; + div.innerHTML = ``; else div.innerHTML = `

.${item.file.split('.').pop()}

`; table.appendChild(div); From 30e460b7f8ba3765301d9f3eb9e93e06ca931940 Mon Sep 17 00:00:00 2001 From: Nadya Date: Sat, 19 May 2018 00:57:19 -0700 Subject: [PATCH 06/15] Improve nginx defaults Don't send nginx version in headers and serve all text/* as utf-8 --- nginx-ssl.sample.conf | 8 ++++++++ nginx.sample.conf | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/nginx-ssl.sample.conf b/nginx-ssl.sample.conf index 72d0028..6fb8497 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; @@ -14,6 +18,7 @@ server { listen [::]:443 ssl http2; 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_type *; + # 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 c702eb2..3bfefe9 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_tokens off; client_max_body_size 100M; # Change this to the max file size you want to allow + charset $charset; + charset_type *; + # Uncomment if you are running lolisafe behind CloudFlare. # This requires NGINX compiled from source with: # --with-http_realip_module From e0911494e61b89f733593e31f6991e788c886ac0 Mon Sep 17 00:00:00 2001 From: Kosemii <22931076+Kosemii@users.noreply.github.com> Date: Sat, 19 May 2018 12:17:37 +0100 Subject: [PATCH 07/15] Added site --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b706ae0..088fe46 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ Because of how nodejs apps work, if you want it attached to a domain name you wi - [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 - Feel free to add yours here. ## Author From 18b5d8eed9ddf5f290204879796af00d1b0a6d69 Mon Sep 17 00:00:00 2001 From: Nadya Date: Sun, 20 May 2018 14:25:15 -0700 Subject: [PATCH 08/15] Fixes typo of charset_Type unknown directive charset_type, because the directive is charset_types --- nginx-ssl.sample.conf | 2 +- nginx.sample.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx-ssl.sample.conf b/nginx-ssl.sample.conf index 6fb8497..b7f46fe 100644 --- a/nginx-ssl.sample.conf +++ b/nginx-ssl.sample.conf @@ -27,7 +27,7 @@ server { client_max_body_size 100M; # Change this to the max file size you want to allow charset $charset; - charset_type *; + charset_types *; # Uncomment if you are running lolisafe behind CloudFlare. # This requires NGINX compiled from source with: diff --git a/nginx.sample.conf b/nginx.sample.conf index 3bfefe9..05abb64 100644 --- a/nginx.sample.conf +++ b/nginx.sample.conf @@ -16,7 +16,7 @@ server { client_max_body_size 100M; # Change this to the max file size you want to allow charset $charset; - charset_type *; + charset_types *; # Uncomment if you are running lolisafe behind CloudFlare. # This requires NGINX compiled from source with: From f28fcf4388a4930244c643e5b3993038d098d008 Mon Sep 17 00:00:00 2001 From: Kosemii <22931076+Kosemii@users.noreply.github.com> Date: Sun, 20 May 2018 23:04:33 +0100 Subject: [PATCH 09/15] Fixed an issue with dashboard Fixed an issue cutting off delete button in dashboard --- public/css/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/css/style.css b/public/css/style.css index 695a1d9..6bf95e1 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -102,7 +102,7 @@ section#auth input, section#auth a { } section#dashboard .table { font-size: 12px } -section#dashboard div#table div.column { display:flex; width: 200px; height: 200px; margin: 9px; background: #f9f9f9; overflow: hidden; flex-wrap: wrap; align-items: center; } +section#dashboard div#table div.column { display:flex; width: 200px; height: 220px; margin: 9px; background: #f9f9f9; overflow: hidden; flex-wrap: wrap; align-items: center; } section#dashboard div#table div.column a { width: 100%; } section#dashboard div#table div.column a:first-child { height: 180px; } section#dashboard div#table div.column a img { width:200px; } From 55e64b1f36a4a09fdead04ce1450cf2f506e1dad Mon Sep 17 00:00:00 2001 From: Nadya Date: Sun, 20 May 2018 15:12:33 -0700 Subject: [PATCH 10/15] Fix: File Deletion for No Thumbnail in Album View If a file did not have a thumbnail the delete button would not render. --- public/js/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/dashboard.js b/public/js/dashboard.js index 8afc89d..b080402 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -144,7 +144,7 @@ panel.getUploads = function(album = undefined, page = undefined){ if(item.thumb !== undefined) div.innerHTML = ``; else - div.innerHTML = `

.${item.file.split('.').pop()}

`; + div.innerHTML = `

.${item.file.split('.').pop()}

`; table.appendChild(div); } From df6d5459e038ef8edfb480e1d09cac25fa2c3ac6 Mon Sep 17 00:00:00 2001 From: Shumatsu Date: Mon, 21 May 2018 23:13:39 +0200 Subject: [PATCH 11/15] File extension bans `.nt` - turns out there's more Windows batch file extensions. `.psm1` - PowerScript extension. `.bash`, `.bsh`, `.csh`, `.bash_profile`, `.bashrc`, `.profile` - apparently those are valid bash script extensions. `.reg` - overwrites Windows registry keys upon execution. --- config.sample.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config.sample.js b/config.sample.js index 6672883..d8d38b6 100644 --- a/config.sample.js +++ b/config.sample.js @@ -41,9 +41,18 @@ module.exports = { '.com', '.bat', '.cmd', + '.nt', '.scr', '.ps1', - '.sh' + '.psm1', + '.sh', + '.bash', + '.bsh', + '.csh', + '.bash_profile', + '.bashrc', + '.profile', + '.reg' ], // Uploads config From a9ac6b157436758ade3a23e9fc86eebb2b729a22 Mon Sep 17 00:00:00 2001 From: Shumatsu Date: Mon, 21 May 2018 23:22:54 +0200 Subject: [PATCH 12/15] Adjusting to recommendations --- config.sample.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config.sample.js b/config.sample.js index d8d38b6..e82dc67 100644 --- a/config.sample.js +++ b/config.sample.js @@ -51,8 +51,7 @@ module.exports = { '.csh', '.bash_profile', '.bashrc', - '.profile', - '.reg' + '.profile' ], // Uploads config From 953981f48d44e678ad3d82121ee07c64d41ae122 Mon Sep 17 00:00:00 2001 From: Uriel Date: Thu, 31 May 2018 14:48:24 -0300 Subject: [PATCH 13/15] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 088fe46..44f7938 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ Because of how nodejs apps work, if you want it attached to a domain name you wi - [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 (WIP) - Feel free to add yours here. ## Author From 1bc9c1ed7fff6ad6bb832acbaf4750b12e2fef5c Mon Sep 17 00:00:00 2001 From: Uriel Date: Fri, 1 Jun 2018 09:01:23 -0300 Subject: [PATCH 14/15] removed wip --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 44f7938..852238a 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Because of how nodejs apps work, if you want it attached to a domain name you wi - [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 (WIP) +- [i-want-to.2dgirls.date](https://i-want-to.2dgirls.date): A clone that screams what you want - Feel free to add yours here. ## Author From 67d7bf18b37ebb5c602e0779cce3498df41717a5 Mon Sep 17 00:00:00 2001 From: Josh Date: Sun, 3 Jun 2018 21:39:39 -0400 Subject: [PATCH 15/15] anotha one --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 852238a..c424103 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ Because of how nodejs apps work, if you want it attached to a domain name you wi - [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