<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>#mattermost | 株式会社TOKYO - TOKYO CO., Ltd.</title>
	<atom:link href="https://www.tokyo-ict.com/tag/mattermost/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tokyo-ict.com</link>
	<description>私たちは、ＩＣＴを通して世界の発展に寄与する社会貢献企業を目指します。</description>
	<lastBuildDate>Wed, 08 Oct 2025 07:20:27 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.tokyo-ict.com/wp-content/uploads/2020/06/cropped-TokyoLogo-scaled-1-32x32.gif</url>
	<title>#mattermost | 株式会社TOKYO - TOKYO CO., Ltd.</title>
	<link>https://www.tokyo-ict.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>https-portalをリバースプロキシとして使うMattermostの構築手順</title>
		<link>https://www.tokyo-ict.com/tokyoplus/tech/mattermost_https-portal/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 20 Aug 2024 22:19:01 +0000</pubDate>
				<category><![CDATA[情報技術]]></category>
		<category><![CDATA[#mattermost]]></category>
		<guid isPermaLink="false">https://www.tokyo-ict.com/?p=9672</guid>

					<description><![CDATA[<p>弊社は社内でのコミュニケーションツールにMattermostを利用しています。今までは手動でSSL証明書を発行する必要があり、それを自動化するために先日、リバースプロキシとしてhttps-portalを実装しました。今日 [&#8230;]</p>
The post <a href="https://www.tokyo-ict.com/tokyoplus/tech/mattermost_https-portal/">https-portalをリバースプロキシとして使うMattermostの構築手順</a> first appeared on <a href="https://www.tokyo-ict.com">株式会社TOKYO - TOKYO CO., Ltd.</a>.]]></description>
										<content:encoded><![CDATA[<p>弊社は社内でのコミュニケーションツールにMattermostを利用しています。今までは手動でSSL証明書を発行する必要があり、それを自動化するために先日、リバースプロキシとしてhttps-portalを実装しました。今日はその手順をまとめてみたいと思います。</p>



<p>前提として、Ubuntu 22.04サーバでDocker Composeを利用してMattermostが動いていることとします。</p>



<p><span data-fontsize="21px" style="font-size: 21px;" class="vk_inline-font-size">１．https-portalの設定。</span></p>



<p>以下のコマンドでhttps-portalのymlファイルを作成します。</p>



<pre class="wp-block-code"><code><code>vim docker-compose.https-portal.yml</code></code></pre>



<p>ymlファイルの中身はこんな感じになるかと思います。</p>



<pre class="wp-block-code"><code><code>version: '3'

services:
  https-portal:
    image: steveltn/https-portal:1
    ports:
      - '80:80'
      - '443:443'
    restart: always
    environment:
      DOMAINS: 'MattermostのURL -&gt; http://host.docker.internal:8065'
      STAGE: 'production'
      FORCE_SSL: 'true'
      WEBSOCKET: 'true'
    volumes:
      - https-portal-data:/var/lib/https-portal
    extra_hosts:
      - 'host.docker.internal:host-gateway'

volumes:
    https-portal-data:</code></code></pre>



<p>https-portal→ホスト→Mattermostの順に通信ができるようにhost.docker.internalという機能を使っています。host.docker.internalとはDockerコンテナからコンテナが動作しているマシンにアクセスするための特別なDNS名です。この機能を使うと、コンテナ内部からホストのIPアドレスを指定せずにホストのサービスにアクセスすることができます。</p>



<p><span data-fontsize="21px" style="font-size: 21px;" class="vk_inline-font-size">２．Mattermostのymlファイルの設定。</span></p>



<p>ローカルホストからのみ通信できるように、Mattermostの記述のポート部分を以下のように設定します。172.17.0.1はDockerがホストに割り当てるデフォルトのIPアドレスです。</p>



<pre class="wp-block-code"><code><code>    ports:
      - '172.17.0.1:8065:8065'</code></code></pre>



<p><span data-fontsize="21px" style="font-size: 21px;" class="vk_inline-font-size">３．Mattermostの再起動。</span></p>



<p>一度、動いているコンテナを停止し、Mattermostを再起動します。https-portalをリバースプロキシとして使うので、これまでwebサーバおよびリバースプロキシとして使っていたnginxのコンテナは動かしません。</p>



<p>以上の手順で、https-portalをリバースプロキシとして使ったMattermostの環境構築ができました。これでSSL証明書の自動更新ができるようになったのとリバースプロキシを分離したことで、今後の管理がより簡単になりました。</p>The post <a href="https://www.tokyo-ict.com/tokyoplus/tech/mattermost_https-portal/">https-portalをリバースプロキシとして使うMattermostの構築手順</a> first appeared on <a href="https://www.tokyo-ict.com">株式会社TOKYO - TOKYO CO., Ltd.</a>.]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
