hispanico.letsencrypt-nginx-revproxy

ansible-letsencrypt-nginx-revproxy

ビルドステータス Galaxy

Nginxを逆プロキシとして設定し、Let's Encrypt証明書を使用して複数のウェブサイトを管理します。

要件

このロールは、Ansible 1.9以上が必要です。

ロール変数

デフォルト値:

nginx_revproxy_sites:                                         # 逆プロキシにするサイトのリスト
  example.com:                                                # ドメイン名
    domains:                                                  # サーバー名エイリアスのリスト
      - example.com
      - www.example.com
    upstreams:                                                # アップストリームのリスト
      - { backend_address: 192.168.0.100, backend_port: 80 }
      - { backend_address: 192.168.0.101, backend_port: 8080 }
    letsencrypt: true                                        # hispanico.letsencrypt-nginx-revproxyロールを使用している場合はTrueに設定
    letsencrypt_email: '[email protected]'

依存関係

サンプルプレイブック

このサンプルは、次のサイトのためにnginxを逆プロキシとして設定します:

  • example.org 自己署名SSL証明書
  • example.com Let's Encrypt ACMEプロトコルで生成されたSSL証明書。
  - hosts: all
    roles:
      - ansible-nginx-revproxy
      - ansible-letsencrypt-nginx-revproxy
    vars:
      nginx_revproxy_sites:
        example.org:
          domains:
            - example.org
            - www.example.org
          upstreams:
            - { backend_address: 192.168.0.200, backend_port: 80 }
            - { backend_address: 192.168.0.201, backend_port: 80 }
          letsencrypt: false

        example.com:
          domains:
            - example.com
            - www.example.com
          upstreams:
            - { backend_address: 192.168.0.100, backend_port: 80 }
            - { backend_address: 192.168.0.101, backend_port: 80 }
          letsencrypt: true

ライセンス

GPLv3ライセンスのもとでライセンスされています。詳細については、LICENSEファイルを参照してください。

著者情報

Hispanico

プロジェクトについて

Manage Nginx as Reverse Proxy

インストール
ansible-galaxy install hispanico.letsencrypt-nginx-revproxy
ライセンス
Unknown
ダウンロード
212
所有者
@openwisp Contributor and @ninuxorg Member