LoginSignup
0
0

More than 5 years have passed since last update.

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

Posted at

StashをAWSで動かします。
DBはRDSを使い、メール送信はSESを使います。
以下の続きです。
refs: http://qiita.com/yhiranoo/items/5db2f08a057f5859c4e9

GitとJIRAをインストール

StashはGitを使いますので、Gitと合わせてインストールします。

yum -y install git
wget https://www.atlassian.com/software/stash/downloads/binary/atlassian-stash-3.8.0-x64.bin
chmod +x atlassian-stash-3.8.0-x64.bin
./atlassian-stash-3.8.0-x64.bin

HTTPSで利用するので、リバースプロキシの設定を行います。
JIRAのときと同様です。

service atlstash stop
/var/atlassian/application-data/stash/shared/server.xml
<Connector port="7990"
     protocol="HTTP/1.1"
     connectionTimeout="20000"
     useBodyEncodingForURI="true"
     redirectPort="443"
     compression="on"
     compressableMimeType="text/html,text/xml,text/plain,text/css,application/js
on,application/javascript,application/x-javascript"
     secure="true"
     scheme="https"
     proxyName="アクセスするURL"
     proxyPort="443" />
/var/atlassian/application-data/stash/shared/server.xml
                <Context docBase="${catalina.home}/atlassian-stash"
                         path="/stash"
/etc/nginx/nginx.conf
        location /stash {
            proxy_pass   http://127.0.0.1:7990;
        }
service atlstash start

RDSを設定する

RDSにDBを作成します。

CREATE DATABASE stash_db WITH ENCODING='UTF8' OWNER=DBユーザー名 CONNECTION LIMIT=-1;

StashのURLにアクセスします。
DB設定で、RDSの情報を設定します。
すべての設定が終わったあとに、管理画面からSESの設定を行います。
設定方法は、JIRAのときと同じです。

JIRAと連携する

アプリケーションリンク・アプリケーションナビゲータ・ユーザーディレクトリの設定を行います。
https://confluence.atlassian.com/display/APPLINKS/Application+Links+User+Guide

おしまい。

0
0
0

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
0
0