{"id":1025,"date":"2019-04-05T15:10:05","date_gmt":"2019-04-05T06:10:05","guid":{"rendered":"https:\/\/fsck.jp\/?p=1025"},"modified":"2019-11-15T11:01:15","modified_gmt":"2019-11-15T02:01:15","slug":"aws%e3%81%a7redmine%e3%82%b5%e3%83%bc%e3%83%90%e8%b5%b7%e5%8b%95","status":"publish","type":"post","link":"https:\/\/fsck.jp\/?p=1025","title":{"rendered":"AWS (Amazon EC2) \u3067 Redmine \u30b5\u30fc\u30d0\u4f5c\u6210"},"content":{"rendered":"\n<p>\u8ab2\u984c\u7ba1\u7406\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u308b\u5fc5\u8981\u304c\u51fa\u3066\u304d\u305f\u306e\u3067\u3001AWS (EC2) \u3067\u304a\u624b\u8efd\u306b\u4f5c\u3063\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<h2>1.\u4eee\u60f3\u30de\u30b7\u30f3\u30c7\u30d7\u30ed\u30a4<\/h2>\n\n\n\n<p>AWS \u30b3\u30f3\u30bd\u30fc\u30eb\u3067 EC2 \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u8ffd\u52a0\u753b\u9762\u306b\u884c\u304d\u3001AWS Marketplace \u304b\u3089\u691c\u7d22\u3067\u300cRedmine Certified by Bitnami\u300d\u3092\u63a2\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"1024\" height=\"704\" src=\"https:\/\/fsck.jp\/wp-content\/uploads\/2019\/04\/20190405-01-3-e1555050463889-1024x704.png\" alt=\"\" class=\"wp-image-1047\" srcset=\"https:\/\/fsck.jp\/wp-content\/uploads\/2019\/04\/20190405-01-3-e1555050463889-1024x704.png 1024w, https:\/\/fsck.jp\/wp-content\/uploads\/2019\/04\/20190405-01-3-e1555050463889-300x206.png 300w, https:\/\/fsck.jp\/wp-content\/uploads\/2019\/04\/20190405-01-3-e1555050463889-768x528.png 768w, https:\/\/fsck.jp\/wp-content\/uploads\/2019\/04\/20190405-01-3-e1555050463889-624x429.png 624w, https:\/\/fsck.jp\/wp-content\/uploads\/2019\/04\/20190405-01-3-e1555050463889.png 1959w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e AMI \u3092\u5229\u7528\u3057\u3066\u3001t1.micro \u306e\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n\n\n\n<h2>2. \u521d\u56de\u30ed\u30b0\u30a4\u30f3<\/h2>\n\n\n\n<p>ssh\u3067\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3002\u30e6\u30fc\u30b6\u540d\u306fbitnami\u3001ssh\u9375\u306f\u30c7\u30d7\u30ed\u30a4\u6642\u306b\u6307\u5b9a\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3002<\/p>\n\n\n\n<p>bitnami\u30e6\u30fc\u30b6\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b &#8220;bitnami_credentials&#8221;\u3068\u3044\u3046\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u306e\u3067\u3001\u4e2d\u3092\u95b2\u89a7\u3059\u308b\u3002Redmine\u4e0a\u306e\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Welcome to the Bitnami Redmine Stack<br><br>******************************************************************************<br>The default username and password is 'user' and 'TBLwnBpotZT3'.<br>******************************************************************************<br><br>You can also use this password to access the databases and any other component the stack includes.<br>Please refer to https:\/\/docs.bitnami.com\/ for more details.<\/pre>\n\n\n\n<p>https:\/\/Redmine\u30db\u30b9\u30c8\u306e\u30b0\u30ed\u30fc\u30d0\u30ebIP\u30a2\u30c9\u30ec\u30b9\/ \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u30e6\u30fc\u30b6\u540d: user \u30d1\u30b9\u30ef\u30fc\u30c9: \u4e0a\u8a18\u30c6\u30ad\u30b9\u30c8\u5185\u306e\u30d1\u30b9\u30ef\u30fc\u30c9 \u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306b\u4f7f\u3046\u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u6a29\u9650\u3092\u5272\u308a\u5f53\u3066\u3001\u305d\u306e\u30e6\u30fc\u30b6\u3067\u518d\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u5143\u3005\u306e\u300cuser\u300d\u30e6\u30fc\u30b6\u3092\u524a\u9664\u3059\u308b\uff08\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u8003\u616e\u3057\u3066\uff09\u3002<br><\/p>\n\n\n\n<h2>3. \u30db\u30b9\u30c8\u540d\u306e\u4ed8\u4e0e\u3068 SSL \u8a3c\u660e\u66f8\u306e\u53d6\u5f97<\/h2>\n\n\n\n<p>\u81ea\u5206\u306e\u6240\u6709\u30c9\u30e1\u30a4\u30f3\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30db\u30b9\u30c8\u540d\u3092\u5272\u308a\u5f53\u3066\u3001<a href=\"https:\/\/letsencrypt.org\/\">Let&#8217;s Encrypt<\/a>\u3067\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3067\u6b63\u898f\u306e https \u30b5\u30a4\u30c8\u306b\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u6240\u6709\u30c9\u30e1\u30a4\u30f3\u306e\u30be\u30fc\u30f3\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aA\u30ec\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u30ea\u30ed\u30fc\u30c9\u3059\u308b\u3002\u4f8b\u793a\u30a2\u30c9\u30ec\u30b9\u306e 203.0.113.100 \u306f  Redmine \u30db\u30b9\u30c8\u306e\u30b0\u30ed\u30fc\u30d0\u30eb IP \u30a2\u30c9\u30ec\u30b9\u3068\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">redmine.example.com.    IN A     203.0.113.100<\/pre>\n\n\n\n<p>Redmine \u30b5\u30fc\u30d0\u306b ssh \u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\/opt\/bitnami \u4ee5\u4e0b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e letsencrypt \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 (lego) \u3092\u5229\u7528\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo \/opt\/bitnami\/letsencrypt\/scripts\/generate-certificate.sh -m root@example.com -d redmine.example.com<br>...<br>It will create a certificate for the domain \"redmine.example.com\" under the email \"root@example.com\"<br> Do you want to continue? [y\/n]: y<br>...<br>You can now configure a cronjob to renew it every month.<br> Do you want to proceed? [y\/n]: y<\/pre>\n\n\n\n<p>Apache \u306e\u8a2d\u5b9a\u3082\u81ea\u52d5\u3067\u66f8\u304d\u63db\u308f\u308b\u306e\u3067\u3001\u3053\u308c\u3067\u4f5c\u696d\u5b8c\u4e86\u3067\u3082\u3088\u3044\u304c\u3001http\u3067\u30a2\u30af\u30bb\u30b9\u3055\u308c\u305f\u3089https\u306b\u8ee2\u9001\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/opt\/bitnami\/apache2\/conf\/bitnami\/bitnami.conf<br><br>13\u884c\u76ee\u4ed8\u8fd1\u306b\u592a\u5b57\u306e3\u884c\u3092\u8ffd\u52a0<br>  &lt;Directory \"\/opt\/bitnami\/apache2\/htdocs\"&gt;<br>    Options Indexes FollowSymLinks<br>    AllowOverride All<br>    <strong>RewriteEngine on<\/strong><br>    <strong>RewriteCond %{HTTPS} off<\/strong><br>    <strong>RewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [R=301,L]<\/strong><br>    &lt;IfVersion &lt; 2.3&gt;<br>    Order allow,deny<br>    Allow from all<br><br>28\u884c\u76ee\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8<br> #Include \"\/opt\/bitnami\/apache2\/conf\/bitnami\/bitnami-apps-prefix.conf\"<br> <br><br>$ sudo \/etc\/init.d\/bitnami restart<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8ab2\u984c\u7ba1\u7406\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u308b\u5fc5\u8981\u304c\u51fa\u3066\u304d\u305f\u306e\u3067\u3001AWS (EC2) \u3067\u304a\u624b\u8efd\u306b\u4f5c\u3063\u3066\u307f\u305f\u3002 1.\u4eee\u60f3\u30de\u30b7\u30f3\u30c7\u30d7\u30ed\u30a4 AWS \u30b3\u30f3\u30bd\u30fc\u30eb\u3067 EC2 \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u8ffd\u52a0\u753b\u9762\u306b\u884c\u304d\u3001AWS Marketplace \u304b\u3089\u691c\u7d22\u3067\u300cRed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27,13,9,14],"tags":[],"_links":{"self":[{"href":"https:\/\/fsck.jp\/index.php?rest_route=\/wp\/v2\/posts\/1025"}],"collection":[{"href":"https:\/\/fsck.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fsck.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fsck.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fsck.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1025"}],"version-history":[{"count":0,"href":"https:\/\/fsck.jp\/index.php?rest_route=\/wp\/v2\/posts\/1025\/revisions"}],"wp:attachment":[{"href":"https:\/\/fsck.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fsck.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fsck.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}