LoginSignup
2

More than 5 years have passed since last update.

JIRAをEC2+RDS+SESでセットアップする

Posted at

JIRAをAWSで動かします。
DBはRDSを使い、メール送信はSESを使います。

nginxをセットアップ

EC2にsshでログインします。
nginxをインストールします。(ELB用)

yum -y install nginx
service nginx start
chkconfig nginx on

nginxにリバースプロキシを設定します。

/etc/nginx/nginx.conf
        location /jira {
            proxy_pass   http://127.0.0.1:8080;
        }
service nginx restart

JIRAをインストール

JIRAのインストーラをダウンロードします。
https://www.atlassian.com/software/jira/download?b=j

wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-6.4.2-x64.bin

インストーラを実行します。

chmod +x atlassian-jira-6.4.2-x64.bin
./atlassian-jira-6.4.2-x64.bin

HTTPSでアクセスできるようにします。
Serviceの下に以下の記載を追加します。

/opt/atlassian/jira/conf/server.xml
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8080" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" 
            scheme="https" proxyName="アクセスするURL" proxyPort="443" secure="true"/>

RDSを使うように設定する

JIRAのURLへブラウザからアクセスして、セットアップを始めます。

[Database Setup]
Database Type: PostgreSQL
Hostname: エンドポイント
Port: エンドポイントのポート
Database: jira_db
Database: RDSにつくったDB名
Username: RDSにつくったDBユーザー名
Password: RDSにつくったDBパスワード
Shcema: 変更なし

Test Connectionして、成功することを確認しておきます。

SESを使うように設定する

設定をどんどん進めて、Email Notifictionを設定します。

[Set Up Email Notifiction]
Host Name: SESのServer Name
SMTP Port: 25
TLS: check
Username: SESでつくったSmtp Username
Password: SESでつくったSmtp Password

おしまい。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2