diadia

興味があることをやってみる。自分のメモを残しておきます。

https化してみる

django-allauthを使っても実際に運用するとhttpのためにログインページを表示する事ができないことがあった。そのためhttps化させる必要があるとわかった。

参考:https://certbot.open-code.club/
https://narito.ninja/blog/detail/19/

大雑把な手順

certbotというコマンドでTLSサーバ証明書を取得する事ができるのでcertbotコマンドをインストール。
certbotコマンドを実行しTLSサーバ証明書を取得する。
Webサーバ(ngnx)に証明書を設定する。

参考:https://certbot.open-code.club/certonly-standalone.html#certbot%20certonly%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%A7%E8%A8%BC%E6%98%8E%E6%9B%B8%E5%8F%96%E5%BE%97(standalone%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3)