16.6k stars 开源的本地文件共享传输工具 docker部署教程

这篇具有很好参考价值的文章主要介绍了16.6k stars 开源的本地文件共享传输工具 docker部署教程。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Install

First, Install docker with docker-compose.

Then, clone the repository:

    git clone https://github.com/RobinLinus/snapdrop.git
    cd snapdrop
    docker-compose up -d

Now point your browser to http://localhost:8080.

  • To restart the containers run docker-compose restart.
  • To stop the containers run docker-compose stop.
  • To debug the NodeJS server run docker logs snapdrop_node_1.

Run locally by pulling image from Docker Hub

Have docker installed, then use the command:

    docker pull linuxserver/snapdrop

To run the image, type (if port 8080 is occupied by host use another random port :80):

    docker run -d -p 8080:80 linuxserver/snapdrop

Testing PWA related features

PWAs require that the app is served under a correctly set up and trusted TLS endpoint.

The nginx container creates a CA certificate and a website certificate for you. To correctly set the common name of the certificate, you need to change the FQDN environment variable in docker/fqdn.env to the fully qualified domain name of your workstation.

If you want to test PWA features, you need to trust the CA of the certificate for your local deployment. For your convenience, you can download the crt file from http://<Your FQDN>:8080/ca.crt. Install that certificate to the trust store of your operating system.

  • On Windows, make sure to install it to the Trusted Root Certification Authorities store.
  • On MacOS, double click the installed CA certificate in Keychain Access, expand Trust, and select Always Trust for SSL.
  • Firefox uses its own trust store. To install the CA, point Firefox at http://<Your FQDN>:8080/ca.crt. When prompted, select Trust this CA to identify websites and click OK.
  • When using Chrome, you need to restart Chrome so it reloads the trust store (chrome://restart). Additionally, after installing a new cert, you need to clear the Storage (DevTools -> Application -> Clear storage -> Clear site data).

Please note that the certificates (CA and webserver cert) expire after a day. Also, whenever you restart the nginx docker, container new certificates are created.

The site is served on https://<Your FQDN>:443.    

Deployment Notes

The client expects the server at http(s)://your.domain/server.

When serving the node server behind a proxy, the X-Forwarded-For header has to be set by the proxy. Otherwise, all clients that are served by the proxy will be mutually visible.

By default, the server listens on port 3000.

For an nginx configuration example, see docker/nginx/default.conf.

参考地址:docs/local-dev.md · AscendKing/snapdrop - Gitee.com文章来源地址https://www.toymoban.com/news/detail-808098.html

到了这里,关于16.6k stars 开源的本地文件共享传输工具 docker部署教程的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • Cadence 16.6安装配置教程

    Cadence 16.6安装配置教程

    这里使用的是吴川斌的阿狸狗安装,傻瓜式安装,非常方便快捷 Cadence SPB 16.6安装包下载 阿狸狗下载 视频教程 双击打开阿狸狗 开始安装 其他安装

    2024年02月16日
    浏览(4)
  • 【LocalSend】开源跨平台的局域网文件传输工具,支持IOS、Android、Mac、Windows、Linux

    【LocalSend】开源跨平台的局域网文件传输工具,支持IOS、Android、Mac、Windows、Linux

    工作前提条件:设备使用相同的局域网。 LocalSend is a cross-platform app that enables secure communication between devices using a REST API and HTTPS encryption. Unlike other messaging apps that rely on external servers, LocalSend doesn’t require an internet connection or third-party servers, making it a fast and reliable solution for local

    2024年02月17日
    浏览(32)
  • 文件同步工具 - 本地搭建免费开源的Syncthing自动文件同步服务器【远程访问】

    文件同步工具 - 本地搭建免费开源的Syncthing自动文件同步服务器【远程访问】

    📱iOS学霸主页 在强者的眼中,没有最好,只有更好。我们是移动开发领域的优质创作者,同时也是阿里云专家博主。 ✨ 关注我们的主页,探索iOS开发的无限可能! 🔥我们与您分享最新的技术洞察和实战经验,助您在移动应用开发领域取得成功。 📌欢迎访问我们的微信公

    2024年02月13日
    浏览(8)
  • allegro16.6-差分对走线

    allegro16.6-差分对走线

    1.差分线设置 logic-assign diffierential pair 2.差分规则设置 见《allegro-规则设置》 3.设置差分对单、双根走线设置,点击connect,选中走线,鼠标右击一次选中sigle trace Mode,即可来回切换单双跟走线

    2024年02月11日
    浏览(9)
  • Allegro 16.6使用说明及技巧

    Allegro 16.6使用说明及技巧

    1.导入导出系统设计参数 导出:File→Expeort→parameters;全选(基本设置、光绘设置、色彩设置、文本尺寸、命令参数)→Export,选择合适的目录保存为.prm文件; 导入方法1:File→Import→parameters,加载之前保存的.prm文件,点击import; 导入方法2:执行 setup—user preferences 菜单操作

    2024年02月03日
    浏览(5)
  • 【cadence 16.6】PSPICE如何添加SPICE模型

    【cadence 16.6】PSPICE如何添加SPICE模型

    在使用cadence的PSPICE进行仿真时,需要将SPICE模型转换之后才能进仿真使用,步骤也非常简单,以ADA4807的添加为例: 6.1 File—Model Import Wizard 6.2点击Edit Model就可以看到引脚定义了 6.3 在仿真工程文件的原理图中修改对应的引脚定义:原理图中选中器件,右击—Edit part,在该界面

    2024年02月06日
    浏览(132)
  • 强!10.6K star,一款开源HTTP测试工具,适合新手,简单、容易上手!

    强!10.6K star,一款开源HTTP测试工具,适合新手,简单、容易上手!

    大家好,我是狂师! 今天给大家推荐一款开源的HTTP测试工具: Hurl ,相比 curl 、 wget 功能更强大,且更容易上手、很适用新手使用。 Hurl 是一个使用 Rust 语言开发的命令行工具,它允许用户运行以简单纯文本格式定义的HTTP请求。这个工具不仅适用于获取数据,还非常适合用

    2024年04月28日
    浏览(11)
  • 手动搭建高可用的 kubernetes 集群(v1.16.6)

    1.1 主要组件版本 组件 版本 kubernetes 1.16.6 etcd 3.4.3 containerd 1.3.3 runc 1.0.0-rc10 calico 3.12.0 coredns 1.6.6 dashboard v2.0.0-rc4 k8s-prometheus-adapter 0.5.0 prometheus-operator 0.35.0 prometheus 2.15.2 elasticsearch、kibana 7.2.0 cni-plugins 0.8.5 metrics-server 0.3.6 1.2 主要配置策略 kube-apiserver: 使用节点本地 nginx 4 层透

    2024年02月02日
    浏览(8)
  • Windows11如何通过附近共享发送文件,附近共享传输文件到电脑

    Windows11如何通过附近共享发送文件,附近共享传输文件到电脑

      Windows11如何通过附近共享发送文件 ?2018年,微软推出了名为Nearear Share(附近共享)的新功能。Near share是一种在PC之间传输文件的新方式,类似Airdrop的功能,只需要开启蓝牙和WiFi就能分享照片/影片/文件给另一台电脑,无须传输线、USB或者线上的网络空间分享档案!这也是

    2024年02月05日
    浏览(11)
  • HTTP文件共享传输

    HTTP文件共享传输

    作者:独笔孤行 公众号:云实战 官网:​​http://anyamaze.com​​ 前言 HTTP是超文本传输协议,通过http协议即可搭建网站,提供访问web,也可以实现文件的共享传输。实现文件传输,可直接使用httpd或SimpleHTTPServer服务。 一、安装httpd 执行安装httpd命令 二、配置httpd 所有修改在

    2023年04月26日
    浏览(6)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包