.. _appendix:

付録
****

.. _ApacheConfigSample:

Apache HTTP サーバーの設定ファイルの例
======================================

Apache HTTP サーバーをリバースプロキシサーバーとし、Unicorn ID Manager と連携する設定のサンプルファイルです。

設定の詳細に関しては `Apacheの公式ドキュメント`_ を参考にしてください。

.. literalinclude:: ../rpm/apache/httpd.conf
   :language: apacheconf
   :caption: /etc/httpd/conf/httpd.conf

.. note::
   上記の設定ファイルではサーバーのホスト名は ``uidm.example.com`` として設定されています。実際に利用する際は、適切なホスト名に書き換えてください。

.. note::
   上記の設定ファイルではサーバー証明書に ``/etc/pki/tls/certs/localhost.crt`` と ``/etc/pki/tls/private/localhost.key`` が設定されています。実際に利用する際は、適切な証明書ファイルに書き換えてください。

.. literalinclude:: ../rpm/apache/ssl.conf
   :language: apacheconf
   :caption: /etc/httpd/conf.d/ssl.conf

.. _Apacheの公式ドキュメント: https://httpd.apache.org/docs/current/

.. _uWSGIStandAloneConfigSample:

uWSGIをHTTPサーバーとして動作させる場合の設定例
===============================================

Apache HTTP サーバーを利用せず、uWSGI単独でUnicorn ID Managerを動作させる設定のサンプルファイルです。

設定の詳細に関しては `uWSGI公式ドキュメント`_ を参考にしてください。

.. literalinclude:: ../docker/unicornidm/share/uwsgi_standalone.conf
   :language: ini
   :caption: /opt/osstech/etc/unicornidm/uwsgi.conf

.. note::
   上記の設定ファイルではサーバー証明書に ``/opt/osstech/etc/unicornidm/secrets/certs.pem`` と ``/opt/osstech/etc/unicornidm/secrets/key.pem`` が設定されています。実際に利用する際は、適切な証明書ファイルに書き換えてください。

.. _uWSGI公式ドキュメント: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html

.. _CertificateServiceInstallGuide:

ActiveDirectory証明書サービスインストールガイド
===============================================

.. only:: html

  :download:`ActiveDirectory証明書サービスインストールガイド <../appendix/CertificateService.odt>`
