mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Fixed some links and typos
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
Apache setup
|
||||
=============
|
||||
|
||||
.. Note::
|
||||
You need to have followed the :doc:`easy install <./easy_install>` first.
|
||||
|
||||
Apache is heavier than :doc:`Nginx <./nginx_install>`. But it's also much more famous:
|
||||
|
||||
- more people will be able to help you on forums;
|
||||
|
||||
@@ -9,8 +9,10 @@ and :doc:`Nginx <./nginx_install>` setups.
|
||||
10 seconds setup (if you know Python already)
|
||||
===============================================
|
||||
|
||||
pip install zerobin
|
||||
zerobin --host 0.0.0.0 --port 80 --compressed-static # as admin
|
||||
Just type::
|
||||
|
||||
pip install zerobin
|
||||
zerobin --host 0.0.0.0 --port 80 --compressed-static # as admin
|
||||
|
||||
30 seconds setup (for anybody)
|
||||
===============================
|
||||
@@ -19,8 +21,9 @@ zerobin --host 0.0.0.0 --port 80 --compressed-static # as admin
|
||||
- Download the last zip of the sources code.
|
||||
- Extract all of it where you wish the site to be stored.
|
||||
- Go to the extracted files.
|
||||
- Run `python zerobin.py --host 0.0.0.0 --port 80 --compressed-static`
|
||||
with the admin rights.
|
||||
- Run with the admin rights::
|
||||
|
||||
python zerobin.py --host 0.0.0.0 --port 80 --compressed-static
|
||||
|
||||
On ubuntu, this is a one liner::
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
Nginx setup
|
||||
============
|
||||
|
||||
.. Note::
|
||||
You need to have followed the :doc:`easy install <./easy_install>` first.
|
||||
|
||||
Nginx is a very popular choice to serve a Python project:
|
||||
|
||||
- It's fast.
|
||||
|
||||
@@ -20,6 +20,7 @@ The host and port on which to listen for incomming request. Usually 127.0.0.1
|
||||
and 8000 to listen locally or 0.0.0.0 and 80 to listen from the outside.
|
||||
|
||||
Default: 127.0.0.1 and 8000
|
||||
|
||||
Setting file : HOST and PORT
|
||||
|
||||
|
||||
@@ -32,6 +33,7 @@ instead of showing the 500 error page.
|
||||
In debug mode, the server also reload automatically any modified Python file;
|
||||
|
||||
Default: False
|
||||
|
||||
Configuration file equivalent: DEBUG
|
||||
|
||||
.. _user-and-group-en:
|
||||
@@ -47,6 +49,7 @@ port 80, but you wish that the process do not have access to protected files.
|
||||
--group is set to --user if not passed.
|
||||
|
||||
Default: None
|
||||
|
||||
Configuration file equivalent: USER and GROUP
|
||||
|
||||
--settings-file
|
||||
@@ -55,6 +58,7 @@ Configuration file equivalent: USER and GROUP
|
||||
Path to the configuration file, if you use any.
|
||||
|
||||
Default: None
|
||||
|
||||
Configuration file equivalent: None
|
||||
|
||||
|
||||
@@ -65,6 +69,7 @@ Serve minified static files (css and js). Use it in production to get a faster
|
||||
web site.
|
||||
|
||||
Default: False
|
||||
|
||||
Configuration file equivalent: COMPRESSED_STATIC_FILES
|
||||
|
||||
--version and --help
|
||||
@@ -73,6 +78,7 @@ Configuration file equivalent: COMPRESSED_STATIC_FILES
|
||||
Display the help or the version of 0bin.
|
||||
|
||||
Default: None
|
||||
|
||||
Configuration file equivalent: None
|
||||
|
||||
Examples
|
||||
@@ -86,6 +92,7 @@ Developpement::
|
||||
|
||||
zerobin --debug --serve-static
|
||||
|
||||
|
||||
Configuration file
|
||||
====================
|
||||
|
||||
@@ -109,6 +116,7 @@ In debug mode, the server also reload automatically any modified Python file;
|
||||
|
||||
|
||||
Default: False
|
||||
|
||||
Command line equivalent: --debug
|
||||
|
||||
.. _static-root-en:
|
||||
@@ -120,6 +128,7 @@ Asbolute path to the directory where 0bin is going to look for static files
|
||||
(css, js and images).
|
||||
|
||||
Default: "static" directory in the "zerobin" directory
|
||||
|
||||
Command line equivalent: None
|
||||
|
||||
COMPRESSED_STATIC_FILES
|
||||
@@ -129,6 +138,7 @@ Serve minified static files (css and js). Use it in production to get a faster
|
||||
web site.
|
||||
|
||||
Default: False
|
||||
|
||||
Command line equivalent: --compressed-static
|
||||
|
||||
PASTE_FILES_ROOT
|
||||
@@ -137,6 +147,7 @@ PASTE_FILES_ROOT
|
||||
Absolute path to the directory in which 0bin is going to look save pastes.
|
||||
|
||||
Default: "static/content" direcotry in the "zerobin" directory
|
||||
|
||||
Command line equivalent: None
|
||||
|
||||
.. _template-dirs-en:
|
||||
@@ -157,6 +168,7 @@ at the begining of the list::
|
||||
) + TEMPLATE_DIRS
|
||||
|
||||
Default: "view" directory in the "zerobin" directory
|
||||
|
||||
Command line equivalent: None
|
||||
|
||||
HOST and PORT
|
||||
@@ -167,6 +179,7 @@ The host and port on which to listen for incomming request. Usually 127.0.0.1
|
||||
and 8000 to listen locally or 0.0.0.0 and 80 to listen from the outside.
|
||||
|
||||
Default: 127.0.0.1 and 8000
|
||||
|
||||
Configuration file equivalent: --host and --port
|
||||
|
||||
USER and GROUP
|
||||
@@ -180,6 +193,7 @@ port 80, but you wish that the process do not have access to protected files.
|
||||
GROUP is set to USER if not passed.
|
||||
|
||||
Default: None
|
||||
|
||||
Configuration file equivalent: --user and --group
|
||||
|
||||
MENU
|
||||
@@ -199,6 +213,7 @@ Default::
|
||||
('Contact', 'mailto:your@email.com') # email
|
||||
)
|
||||
|
||||
|
||||
Command line equivalent: None
|
||||
|
||||
MAX_SIZE
|
||||
@@ -209,4 +224,5 @@ Approximative value for a paste size limite.
|
||||
Valeur approximative de limite de taille d'un paste.
|
||||
|
||||
Default = 500000 octets (500 ko)
|
||||
|
||||
Command line equivalent: None
|
||||
Reference in New Issue
Block a user