TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Setting up a static HTTPS website on your Raspberry Pi using Docker and Nginx

56 点作者 rain1超过 3 年前

10 条评论

InvaderFizz超过 3 年前
I was initially looking at this to see how they automated their Let&#x27;s Encrypt and if it was better than just using Caddy. I was disappointed to find they are just creating a self-signed RootCA and issuing certs.<p><pre><code> &gt; Now if you go into Chromium browser settings and search &quot;certificates&quot;, in the Security tab, Manage Certificates, you can add an Authority. Import &#x27;ca.pem&#x27;. Tell the browser to Trust this certificate for identifying websites. This should add &#x27;org-test-ca&#x27; to your browser. This allows HTTPS certificates signed by that to be seen as valid in your browser.</code></pre>
评论 #28980040 未加载
评论 #28982356 未加载
评论 #28980015 未加载
评论 #28979991 未加载
ThinkBeat超过 3 年前
Do it 90s style.<p>Install apache (or nginx or lighttpd) on your box using your distros package manager of choice.<p>Configure https on apache.
评论 #28980579 未加载
schwartzworld超过 3 年前
It seems like a lot of work to serve a static site over your local network. How is this different from running `python -m SimpleHTTPServer`?
评论 #28980352 未加载
评论 #28980434 未加载
butz超过 3 年前
Why even use docker for a static website server?
评论 #28980176 未加载
评论 #28980206 未加载
评论 #28980112 未加载
评论 #28980100 未加载
capableweb超过 3 年前
Tangential at best: where can you get a hold on a Raspberry Pi 4 in Europe? Every store is sold-out and the ones that aren&#x27;t only allow one per customer.
评论 #28979919 未加载
评论 #28981745 未加载
评论 #28980145 未加载
评论 #28980052 未加载
评论 #28981967 未加载
评论 #28980349 未加载
评论 #28980574 未加载
jsisto超过 3 年前
I accomplish this with raspberry pi + docker + swag <a href="https:&#x2F;&#x2F;docs.linuxserver.io&#x2F;general&#x2F;swag" rel="nofollow">https:&#x2F;&#x2F;docs.linuxserver.io&#x2F;general&#x2F;swag</a>
kaycebasques超过 3 年前
I&#x27;m ashamed that I was so naïve about this, but I was disappointed to realize that hosting a website to the entire public internet on my Pi was non-trivial. Of course once I dug into the idea it was obvious why it was difficult and furthermore that it would be a dangerous thing to do. Just sharing and curious if anyone has done it or knows useful documentation on the topic.
评论 #28980274 未加载
评论 #28980240 未加载
评论 #28980421 未加载
评论 #28980325 未加载
评论 #28982235 未加载
alsobrsp超过 3 年前
Why in the absolute hell does a static site need docker? I don&#x27;t get it, it is not that hard to properly configure software.
评论 #28985187 未加载
评论 #28984825 未加载
tragictrash超过 3 年前
This is a bad guide and should be recognized as such. They should be using certbot or some other utility, not creating their own CA.
lovek3292超过 3 年前
One command&quot; production ready server