このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
01_linux:08_仮想化:31_opennebula_ssl [2019/11/21 00:11] – matsui | 01_linux:08_仮想化:31_opennebula_ssl [2019/11/22 00:06] (現在) – matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
====== 31 OpenNebula SSL化 ====== | ====== 31 OpenNebula SSL化 ====== | ||
+ | ===== OpenNebula ===== | ||
< | < | ||
行 8: | 行 9: | ||
:host: 127.0.0.1 | :host: 127.0.0.1 | ||
:port: 9869 | :port: 9869 | ||
+ | |||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | ↓ | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | : | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Nginx ===== | ||
+ | |||
+ | < | ||
+ | #### OpenNebula Sunstone upstream | ||
+ | upstream sunstone { | ||
+ | server 127.0.0.1: | ||
+ | } | ||
+ | |||
+ | upstream websocketproxy { | ||
+ | server 127.0.0.1: | ||
+ | } | ||
+ | |||
+ | #### cloudserver.org HTTP virtual host | ||
+ | server { | ||
+ | listen 80; | ||
+ | server_name hoge.hogehoge.com; | ||
+ | root / | ||
+ | ### Permanent redirect to HTTPS (optional) | ||
+ | #return 301 https:// | ||
+ | } | ||
+ | |||
+ | #### cloudserver.org HTTPS virtual host | ||
+ | server { | ||
+ | listen 443; | ||
+ | server_name hoge.hogehoge.com; | ||
+ | |||
+ | ### SSL Parameters | ||
+ | ssl on; | ||
+ | ssl_session_timeout 24h; | ||
+ | ssl_certificate / | ||
+ | ssl_certificate_key / | ||
+ | |||
+ | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
+ | | ||
+ | client_max_body_size 10G; | ||
+ | |||
+ | ### Proxy requests to upstream | ||
+ | location / { | ||
+ | proxy_pass http:// | ||
+ | } | ||
+ | |||
+ | location /websockify { | ||
+ | proxy_pass http:// | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Lets' Encryptの場合 ===== | ||
+ | |||
+ | oneadminでアクセスできないと、下記のエラーになります。 | ||
+ | xxx.xx.xxx.xxx: | ||
+ | xxx.xx.xxx.xxx: | ||
+ | |||
+ | < | ||
+ | # chmod 755 / | ||
+ | # chmod 644 / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== おまけLet' | ||
+ | |||
+ | < | ||
+ | certbot-auto renew --force-renew --post-hook " | ||
</ | </ | ||
{{tag> | {{tag> | ||