From 046f45f9ddf5fbf105112c0d9321c80edf5af507 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 10 Mar 2020 20:49:14 +0100 Subject: [PATCH 1/4] Change to https://null.101010.fr url --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 55f9fb2..a56c897 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ The Null Pointer ================ This is a no-bullshit file hosting and URL shortening service that also runs -`envs.sh `_. Use with uWSGI. +`null.101010.fr `_. Use with uWSGI. If you are running nginx, you should use the ``X-Accel-Redirect`` header. To make it work, include this in your nginx config’s ``server`` block:: @@ -42,7 +42,7 @@ INSTALL apt update apt install python3-pip nginx uwsgi uwsgi-plugin-python3 certbot - git clone https://github.com/envs-net/0x0.git /srv/0x0 + git clone https://git.101010.fr/101010/0x0 /srv/0x0 cd /srv/0x0 pip3 install --user `cat requirements.txt` From d1ae5fa1b3b07d6bfac7fe3c57b0144041120d5e Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 10 Mar 2020 20:50:03 +0100 Subject: [PATCH 2/4] Change to looks like to 101010.fr config file --- config/nginx.conf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/config/nginx.conf b/config/nginx.conf index 001f903..4f9dc1b 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -1,10 +1,10 @@ server { listen 80; # listen [::]:80; - server_name 0x0.envs.net; + server_name null.101010.fr; - access_log /var/log/nginx/0x0.envs.net-access.log; - error_log /var/log/nginx/0x0.envs.net-error.log; + access_log /var/log/nginx/null.101010.fr-access.log; + error_log /var/log/nginx/null.101010.fr-error.log; location / { return 307 https://$host$request_uri; @@ -17,28 +17,28 @@ server { server { listen 443 ssl http2; - server_name 0x0.envs.net; + server_name null.101010.fr; - ssl_certificate /etc/letsencrypt/live/0x0.envs.net/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/0x0.envs.net/privkey.pem; + ssl_certificate /etc/letsencrypt/live/null.101010.fr/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/null.101010.fr/privkey.pem; ssl_protocols TLSv1.2; ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_verify_depth 3; - ssl_dhparam /etc/ssl/certs/envs_dhparam.pem; + ssl_dhparam /etc/ssl/certs/dhparam.pem; ssl_session_tickets off; ssl_stapling on; ssl_stapling_verify on; - ssl_trusted_certificate /etc/letsencrypt/live/0x0.envs.net/chain.pem; + ssl_trusted_certificate /etc/letsencrypt/live/null.101010.fr/chain.pem; add_header X-XSS-Protection "1; mode=block"; add_header X-Content-Type-Options nosniff; # add_header X-Frame-Options "SAMEORIGIN"; - access_log /var/log/nginx/0x0.envs.net-access.log; - error_log /var/log/nginx/0x0.envs.net-error.log; + access_log /var/log/nginx/null.101010.fr-access.log; + error_log /var/log/nginx/null.101010.fr-error.log; root /srv/0x0; From 0631706753402e50da85066c4aba4ddb37b688a4 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 10 Mar 2020 20:51:02 +0100 Subject: [PATCH 3/4] Fix 101010.fr URL and contact informations --- fhost.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fhost.py b/fhost.py index f50b235..f076e6b 100755 --- a/fhost.py +++ b/fhost.py @@ -361,7 +361,7 @@ def fhost(): {6} - + @@ -369,7 +369,7 @@ def fhost():
-

envs.sh | THE NULL POINTER

+

null.101010.fr | THE NULL POINTER

file hosting and URL shortening service.


@@ -397,7 +397,7 @@ maximum file size: {1} please do not post any informations that may violate law (login/password lists, email lists, personal information). -envs.sh is NOT a platform for: +null.101010.fr is NOT a platform for:
    @@ -417,7 +417,7 @@ there is only one thing you need to use this service - curl. curl is available on most platforms, including Windows, Mac OS X and Linux. if you run a server and like this site, clone it! centralization is bad. -https://github.com/envs-net/0x0 +https://git.101010.fr/101010/0x0 you can also support it financially via liberapay. img_shield_receives_via_liberapay @@ -472,9 +472,9 @@ retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)

    ABUSE

     if you would like to request permanent deletion, please
    -send an email to hostmaster@envs.net.
    +take a look to 101010's wiki.
     
    -please allow up to 24 hours for a response.
    +please allow up to 48 hours for a response.
     
From 5c099f7c86abac151ab6f62efc7332c6c2b5d045 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 10 Mar 2020 21:01:20 +0100 Subject: [PATCH 4/4] Add a comment about envs.net liberapay --- fhost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhost.py b/fhost.py index f076e6b..611d467 100755 --- a/fhost.py +++ b/fhost.py @@ -418,7 +418,7 @@ curl is available on most platforms, including Windows, Mac OS X and Linux. if you run a server and like this site, clone it! centralization is bad. https://git.101010.fr/101010/0x0 -you can also support it financially via liberapay. +you can also support envs.net (where this fork comes from) financially via liberapay. img_shield_receives_via_liberapay