Webアクセス
- ウェブブラウザでPoznoteにアクセスしてください:
https://<SERVER-IP> - SSL警告を受け入れる(自己署名証明書)。
- Poznoteの認証情報は以下に安全に保管されています:
/root/poznote/.env
重要な経路
- インストール先ディレクトリ:
/root/poznote - 永続データ:
/root/poznote/data - 環境ファイル:
/root/poznote/.env - docker-compose ファイル:
/root/poznote/docker-compose.yml - Nginx設定:
/etc/nginx/sites-available/poznote - SSL証明書:
/etc/nginx/ssl/
サービスの管理
Docker:
cd /root/poznote
docker compose ps
docker compose logs -f
docker compose restart
Nginx:
systemctl status nginx
systemctl restart nginx
ドメインでのSSLの有効化
1. ドメインをサーバーのIPアドレスに設定してください。
2. Nginx設定を編集し、両方を置換する server_name <IP>; あなたのドメインで (<your-domain>HTTP(ポート80)およびHTTPS(ポート443)ブロックの両方に対して:
vim /etc/nginx/sites-available/poznote
3. Certbot のインストール:
apt install -y certbot python3-certbot-nginx
4. 有効なLets Encrypt証明書を生成するには、次のコマンドを実行します:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Nginx設定ファイル内のSSLパスを置換する:
vim /etc/apache2/sites-available/poznote
# Before:
# ssl_certificate /etc/nginx/ssl/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
6. 変更を適用するために Nginx を再起動します:
systemctl restart nginx
7. ブラウザを開き、次のURLにアクセスしてください: https://yourdomain.com