Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CaddyでRaspberry PiをSSL(https)化 #592

Closed
yuiseki opened this issue Oct 9, 2024 · 5 comments
Closed

CaddyでRaspberry PiをSSL(https)化 #592

yuiseki opened this issue Oct 9, 2024 · 5 comments
Assignees

Comments

@yuiseki
Copy link
Member

yuiseki commented Oct 9, 2024

From:

Caddy

@hfu
Copy link
Contributor

hfu commented Oct 13, 2024

ローカルホストでも HTTPS をということを明示されているのはすごく嬉しいです!

「HTTPS を使える=HTTP/2(以降)を使える=HTTP 1.1を使うのと比べればウェブ地図が速くなる可能性がある」ということが期待できて、ワクワクします。

image

source: https://caddyserver.com/

@hfu
Copy link
Contributor

hfu commented Oct 13, 2024

Raspberry Pi OS 上でやってみました!

導入方法

sudo apt install caddy

素晴らしい点

  • HTTP/3 で動いてくれるからか、busybox の httpd を使う場合と比べて、性能がかなり高まりました🚀
  • 証明書の取得も問題なく実施してくれました🚀

認識しておくことが必要な点

  • service で動かそうとすると、色々と細かな問題が起きます。例えば、証明書を作成するのに sudo するが、それでエラーになる、といったものです。systemctl service disable caddy をして、サービスとして動かすことは諦めました。
  • 自分で sudo caddy run --config /etc/caddy/Caddyfile して動かす範囲ではとても快適です。

/etc/caddy/Caddyfile

今のところ、このようにしています。共有まで。

portable.local {
    root * /home/local/h3log/docs
    file_server
    encode gzip
    header {
        Access-Control-Allow-Origin "*"
        Access-Control-Allow-Methods "GET, POST, OPTIONS"
        Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept"
    }
    tls internal
}

@hfu
Copy link
Contributor

hfu commented Oct 13, 2024

h3log で実用を開始したので、priority を上げます。

@hfu
Copy link
Contributor

hfu commented Oct 14, 2024

Smart Maps Portable の HTTPS 化(HTTP/3化)から勇気を得て、点群3D TilesをSmart Maps Portable でホストしたら速いのではないかと思い、現在 Source Cooperative からオープン・ナガサキ点群を里帰りさせつつ、実験を進めています。
多分、速いです。

image

@hfu hfu changed the title CaddyでRaspberry PiをSSL(https)化できるかも CaddyでRaspberry PiをSSL(https)化 Oct 15, 2024
@hfu
Copy link
Contributor

hfu commented Oct 22, 2024

すでに実用しているので、イシューとしては閉じることにします。
素晴らしい情報、ありがとうございました!

@hfu hfu closed this as completed Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants