fix readme

This commit is contained in:
Alexander Neonxp Kiryukhin 2024-08-28 14:58:57 +03:00
parent 459b87480e
commit 094e63a2ef
Signed by: NeonXP
SSH key fingerprint: SHA256:SVt7TjxbVc87m1QYaQziOJ0N3OCFURv2g76gD/UTTXI
2 changed files with 32 additions and 0 deletions

10
Makefile Normal file
View file

@ -0,0 +1,10 @@
.PHONY: deploy
deploy:
docker context use default
docker build -t gitrepo.ru/neonxp/nixshare:latest .
docker push gitrepo.ru/neonxp/nixshare:latest
docker context use curie
docker pull gitrepo.ru/neonxp/nixshare:latest
docker rm nixshare || true
docker run --name nixshare -d -p 8095:8000 -v nixshare:/app/storage gitrepo.ru/neonxp/nixshare

View file

@ -6,8 +6,30 @@
<title>NixShare</title> <title>NixShare</title>
</head> </head>
<body> <body>
<h1>Nixshare</h1>
<h2>Usage:</h2>
<h3>Upload file:</h3>
<pre> <pre>
curl -d @FILENAME https://nixshare.ru/upload curl -d @FILENAME https://nixshare.ru/upload
</pre> </pre>
<h3>Upload clipboard:</h3>
<p>X:</p>
<pre>
xclip -o | curl -d @- https://nixshare.ru/upload
</pre>
<p>Wayland (<code>wl-clipboard</code> required):</p>
<pre>
wl-paste | curl -d @- https://nixshare.ru/upload
</pre>
<h3>Shell alias:</h3>
<p>You can add shell aliases to .bashrc or .zshrc file:</p>
<p>X:</p>
<pre>
alias nsh="xclip -o | curl -d @- https://nixshare.ru/upload 2>/dev/null | xclip"
</pre>
<p>Wayland (<code>wl-clipboard</code> required):</p>
<pre>
alias nsh="wl-paste | curl -d @- https://nixshare.ru/upload 2>/dev/null | wl-copy"
</pre>
</body> </body>
</html> </html>