add auto fetch ssl certs
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"articleSection" : "post",
|
||||
"name" : "[筆記] 幾種可以自建服務的 File Sharing 系統比較",
|
||||
"headline" : "[筆記] 幾種可以自建服務的 File Sharing 系統比較",
|
||||
"description" : "\x3cp\x3e感覺最近應該會用到類似這樣的功能,趁著最近比較閒一點\x3c\/p\x3e\n\n\x3cp\x3e就把系統弄起來玩玩看,順便建立ansible 的playbook\x3c\/p\x3e",
|
||||
"description" : "\x3cp\x3e感覺最近應該會用到類似這樣的功能,趁著最近比較閒一點\x3c\/p\x3e\n\x3cp\x3e就把系統弄起來玩玩看,順便建立ansible 的playbook\x3c\/p\x3e",
|
||||
"inLanguage" : "en",
|
||||
"author" : "Eric Chang",
|
||||
"creator" : "Eric Chang",
|
||||
@@ -24,7 +24,7 @@
|
||||
"datePublished": "2021-06-25 15:49:54 \x2b0800 CST",
|
||||
"dateModified" : "2021-06-25 15:49:54 \x2b0800 CST",
|
||||
"url" : "https:\/\/h.cowbay.org\/post\/various-self-hosted-file-sharing-system-test\/",
|
||||
"wordCount" : "171",
|
||||
"wordCount" : "170",
|
||||
"image" : "https://h.cowbay.org/images/post-default-18.jpg"",
|
||||
"keywords" : [ "Blog" ]
|
||||
}
|
||||
@@ -45,9 +45,9 @@
|
||||
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
|
||||
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1626744134" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1629951055" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1626744134" rel="stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1629951055" rel="stylesheet" type='text/css' media='all'>
|
||||
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
|
||||
@@ -81,10 +81,6 @@ if (!doNotTrack) {
|
||||
|
||||
<ul id="menu-secondary-items" class="menu-secondary-items">
|
||||
|
||||
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
|
||||
<a href="/categories/"></a>
|
||||
</li>
|
||||
|
||||
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
|
||||
<a href="/categories/ansible">ansible</a>
|
||||
</li>
|
||||
@@ -309,134 +305,82 @@ if (!doNotTrack) {
|
||||
<div class="entry-content">
|
||||
<article>
|
||||
<p>感覺最近應該會用到類似這樣的功能,趁著最近比較閒一點</p>
|
||||
|
||||
<p>就把系統弄起來玩玩看,順便建立ansible 的playbook</p>
|
||||
|
||||
<h3 id="linx-server">linx-server</h3>
|
||||
|
||||
<p><a href="https://github.com/andreimarcu/linx-server">https://github.com/andreimarcu/linx-server</a></p>
|
||||
|
||||
<p>目前已經停止開發的樣子</p>
|
||||
|
||||
<p>有Docker 版本,裝起來很容易,用起來也不難</p>
|
||||
|
||||
<p>可以自行架設伺服器</p>
|
||||
|
||||
<p>可以上傳任意類型的檔案</p>
|
||||
|
||||
<p>可以直接線上分享文字</p>
|
||||
|
||||
<p>可以自定分享密碼</p>
|
||||
|
||||
<p>上傳界面可以鎖密碼,但是鎖了密碼之後,就沒辦法用命令上傳檔案(不知道怎麼帶KEY進去)</p>
|
||||
|
||||
<h4 id="不支援整個目錄上傳">不支援整個目錄上傳</h4>
|
||||
|
||||
<h4 id="關於api-如何使用沒有一個完整的說明">關於API 如何使用沒有一個完整的說明</h4>
|
||||
|
||||
<h4 id="始終找不到怎麼建立api-key">始終找不到怎麼建立API KEY</h4>
|
||||
|
||||
<p><img src="https://i.imgur.com/83WOenv.png" alt="" /></p>
|
||||
|
||||
<p><img src="https://i.imgur.com/83WOenv.png" alt=""></p>
|
||||
<p>在console 下,可以直接上傳並取得超連結</p>
|
||||
|
||||
<pre><code class="language-shell">chchang@hqdc039:~/docker/linx-server$ cat linx-server.conf
|
||||
bind = 0.0.0.0:7779
|
||||
sitename = myLinx
|
||||
siteurl = https://share.com.tw
|
||||
maxsize = 4294967296
|
||||
maxexpiry = 43200
|
||||
selifpath = s
|
||||
allowhotlink = false
|
||||
remoteuploads = false
|
||||
nologs = true
|
||||
force-random-filename = true
|
||||
cleanup-every-minutes = 5
|
||||
basicauth = false
|
||||
authfile = /data/authfile
|
||||
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">chchang@hqdc039:~/docker/linx-server$ cat linx-server.conf
|
||||
bind <span style="color:#f92672">=</span> 0.0.0.0:7779
|
||||
sitename <span style="color:#f92672">=</span> myLinx
|
||||
siteurl <span style="color:#f92672">=</span> https://share.com.tw
|
||||
maxsize <span style="color:#f92672">=</span> <span style="color:#ae81ff">4294967296</span>
|
||||
maxexpiry <span style="color:#f92672">=</span> <span style="color:#ae81ff">43200</span>
|
||||
selifpath <span style="color:#f92672">=</span> s
|
||||
allowhotlink <span style="color:#f92672">=</span> false
|
||||
remoteuploads <span style="color:#f92672">=</span> false
|
||||
nologs <span style="color:#f92672">=</span> true
|
||||
force-random-filename <span style="color:#f92672">=</span> true
|
||||
cleanup-every-minutes <span style="color:#f92672">=</span> <span style="color:#ae81ff">5</span>
|
||||
basicauth <span style="color:#f92672">=</span> false
|
||||
authfile <span style="color:#f92672">=</span> /data/authfile
|
||||
|
||||
chchang@hqdc039:~/docker/linx-server$ docker-compose up -d
|
||||
Creating linx-server ... done
|
||||
Creating linx-server ... <span style="color:#66d9ef">done</span>
|
||||
chchang@hqdc039:~/docker/linx-server$ ./linx-client README.md
|
||||
Copied https://share.com.tw/fyd81h81.md into clipboard!
|
||||
chchang@hqdc039:~/docker/linx-server$
|
||||
|
||||
</code></pre>
|
||||
|
||||
<h3 id="psitransfer">Psitransfer</h3>
|
||||
|
||||
</code></pre></div><h3 id="psitransfer">Psitransfer</h3>
|
||||
<p><a href="https://github.com/psi-4ward/psitransfer">https://github.com/psi-4ward/psitransfer</a></p>
|
||||
|
||||
<p>不支援command 上傳</p>
|
||||
|
||||
<p>有docker版本,架設容易</p>
|
||||
|
||||
<p>適合給一般使用者用,可以自行設定密碼、保存期限</p>
|
||||
|
||||
<p>比較特別的是下載的連結可以產生QRCODE</p>
|
||||
|
||||
<p>上傳檔案的頁面也可以鎖密碼</p>
|
||||
|
||||
<p><img src="https://i.imgur.com/UMnPo0W.png" alt="" /></p>
|
||||
|
||||
<p><img src="https://i.imgur.com/UMnPo0W.png" alt=""></p>
|
||||
<h3 id="pictshare">pictshare</h3>
|
||||
|
||||
<p><a href="https://github.com/HaschekSolutions/pictshare">https://github.com/HaschekSolutions/pictshare</a></p>
|
||||
|
||||
<p>有docker版本,但是需要自己手動調整</p>
|
||||
|
||||
<p>不然調整過的config 都會被蓋掉</p>
|
||||
|
||||
<p>調整過後的docker-compose.yml 我放了一份到github 上</p>
|
||||
|
||||
<p><a href="https://github.com/changchichung/docker-compose-pictshare">https://github.com/changchichung/docker-compose-pictshare</a></p>
|
||||
|
||||
<p>需要拿掉pictshare.sh 中,每次自動更新config的部分</p>
|
||||
|
||||
<p>雖然web UI 有點醜,但是基本上想要的功能都有了</p>
|
||||
|
||||
<p>可以用WEB傳,也可以用terminal 傳</p>
|
||||
|
||||
<p>不限制上傳的檔案類型</p>
|
||||
|
||||
<p>可以限制可以上傳的subnet</p>
|
||||
|
||||
<p>回傳的URL 也可以有副檔名,所以可以直接連結當作圖床</p>
|
||||
|
||||
<p>算是很不錯用的了</p>
|
||||
|
||||
<p><img src="https://i.imgur.com/4ujMfRA.png" alt="" /></p>
|
||||
|
||||
<p><img src="https://i.imgur.com/4ujMfRA.png" alt=""></p>
|
||||
<h4 id="upload-in-terminal">upload in terminal</h4>
|
||||
|
||||
<pre><code class="language-shell">chchang@hqdc039:~/docker/pictshare$ pict ~/Downloads/images/IMG_20190717_092723.jpg
|
||||
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">chchang@hqdc039:~/docker/pictshare$ pict ~/Downloads/images/IMG_20190717_092723.jpg
|
||||
https://share.com.tw/1dpobr.jpg
|
||||
chchang@hqdc039:~/docker/pictshare$
|
||||
|
||||
</code></pre>
|
||||
|
||||
<p>就先決定用這個 <strong>pictshare</strong> 吧</p>
|
||||
|
||||
</code></pre></div><p>就先決定用這個 <!-- raw HTML omitted -->pictshare<!-- raw HTML omitted --> 吧</p>
|
||||
<h3 id="另外推薦的工具-anypaste">另外推薦的工具 anypaste</h3>
|
||||
|
||||
<p><a href="https://github.com/markasoftware/anypaste">https://github.com/markasoftware/anypaste</a></p>
|
||||
|
||||
<p>這個雖然不能自己建立服務,需要依賴internet 上已經存在的多個網站服務</p>
|
||||
|
||||
<p>像是 file.io imgur hastebin 等等</p>
|
||||
|
||||
<p>不過呢,如果不是那麼計較安全性,要上傳的檔案不介意丟在internet上公開</p>
|
||||
|
||||
<p>那真的很推薦這個指令,不用安裝有的沒的一大堆,anypaste 本身就是一個script 整合了各家服務的上傳指令</p>
|
||||
|
||||
<p>所以「理論上」 要修改也不是太難..</p>
|
||||
|
||||
<p>跑起來大概像這樣</p>
|
||||
|
||||
<pre><code class="language-shell">chchang@hqdc039:~/docker/pictshare$ anypaste ~/Downloads/images/IMG_20190717_092723.jpg
|
||||
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">chchang@hqdc039:~/docker/pictshare$ anypaste ~/Downloads/images/IMG_20190717_092723.jpg
|
||||
Current file: /home/chchang/Downloads/images/IMG_20190717_092723.jpg
|
||||
Attempting to upload with plugin 'imgur'
|
||||
################################################################################################################# 100.0%
|
||||
Attempting to upload with plugin <span style="color:#e6db74">'imgur'</span>
|
||||
<span style="color:#75715e">################################################################################################################# 100.0%</span>
|
||||
|
||||
Link: https://imgur.com/y0Suzjf
|
||||
Direct: https://i.imgur.com/y0Suzjf.jpg
|
||||
@@ -444,12 +388,10 @@ Edit: https://imgur.com/edit?deletehashD
|
||||
Delete: https://imgur.com/delete/fNJ
|
||||
|
||||
Upload complete.
|
||||
Sucessfully uploaded: '/home/chchang/Downloads/images/IMG_20190717_092723.jpg'
|
||||
Sucessfully uploaded: <span style="color:#e6db74">'/home/chchang/Downloads/images/IMG_20190717_092723.jpg'</span>
|
||||
All files processed. Have a nice day!
|
||||
chchang@hqdc039:~/docker/pictshare$
|
||||
</code></pre>
|
||||
|
||||
<p>也是非常方便的一個工具,值得推薦!</p>
|
||||
</code></pre></div><p>也是非常方便的一個工具,值得推薦!</p>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
@@ -722,7 +664,7 @@ title="pinterest icon"></i>
|
||||
|
||||
</ul> <div class="design-credit">
|
||||
|
||||
<p>© 2018 Göran Svensson</p>
|
||||
<p>© 2018 Göran Svensson</p>
|
||||
|
||||
<p>Nederburg Hugo Theme by <a href="https://appernetic.io">Appernetic</a>.</p>
|
||||
|
||||
@@ -734,7 +676,7 @@ title="pinterest icon"></i>
|
||||
</div>
|
||||
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
|
||||
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1626744134"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1629951055"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user