mirror of
https://github.com/cottow/6paster.git
synced 2024-05-19 06:50:10 +00:00
Update docs: add here document example, also simplify/correct nginx/lighttpd docs and remove redundant lines; add here document to web page
This commit is contained in:
@@ -20,6 +20,9 @@ Paste from STDIN:
|
||||
|
||||
~$ echo "hi" | 6p
|
||||
|
||||
Paste from here document:
|
||||
~$ cat << EOF | 6p
|
||||
|
||||
The oneliner for in your .bash_profile:
|
||||
|
||||
6p() { curl -s -F "content=<${1--}" -F ttl=604800 -w "%{redirect_url}\n" -o
|
||||
|
||||
@@ -2,9 +2,7 @@ LIGHTTPD INSTALL
|
||||
|
||||
- Configure your Lighttpd web server with PHP FastCGI and OpenSSL support - 6paster requires HTTPS to work.
|
||||
|
||||
- Add the server configuration example that you find at 'lighttpd/lighttpd-conf.txt' to your Lighttpd configuration file.
|
||||
|
||||
- Copy the 'lighttpd/index.php' to the 'webroot/' directory of your 6paster installation.
|
||||
- Add the server configuration example that you find at 'server-conf/lighttpd-conf.txt' to your Lighttpd configuration file.
|
||||
|
||||
- Reload the Lighttpd process.
|
||||
|
||||
@@ -12,9 +10,7 @@ NGINX INSTALL
|
||||
|
||||
- Configure your NGINX web server with PHP FastCGI and OpenSSL support - 6paster requires HTTPS to work.
|
||||
|
||||
- Add the server configuration example that you find at 'nginx/nginx-conf.txt' to your NGINX configuration file.
|
||||
|
||||
- Copy the 'webroot/index.php' to the 'webroot/' directory of your 6paster installation.
|
||||
- Add the server configuration example that you find at 'server-conf/nginx-conf.txt' to your NGINX configuration file.
|
||||
|
||||
- Reload the NGINX process.
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
<br/>
|
||||
<input value="Save" type="submit"/>
|
||||
<div class="text">
|
||||
Hint: put the following oneliner in your .bashrc to use "6p <file>" or "echo hi | 6p" (thanks, Habbie and Reinhart):<br><br>
|
||||
Hint: put the following oneliner in your .bashrc to use "6p <file>" or "echo hi | 6p" or "cat << EOF | 6p" (thanks, Habbie and Reinhart):<br><br>
|
||||
<code>6p() { curl -s -F "content=<${1--}" -F ttl=604800 -w "%{redirect_url}\n" -o /dev/null <?=htmlspecialchars($config['server_name'])?> }</code>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user