/etc/nginx/ssl 增加金鑰
ssl_certificate /etc/nginx/ssl/nginx.crt
ssl_certificate_key /etc/nginx/ssl/nginx.key
/etc/nginx/sites-enabled/librenms.vhost 增加 server { 中設定
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
listen 80;
server_name 192.168.10.240;
root /opt/librenms/html;
index index.php;
沒有留言:
張貼留言