<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masato47744</author_name>
  <author_url>https://blog.hatena.ne.jp/masato47744/</author_url>
  <blog_title>まーぽんって誰がつけたの？</blog_title>
  <blog_url>https://mpon.hatenablog.com/</blog_url>
  <categories>
    <anon>nginx</anon>
    <anon>Docker</anon>
  </categories>
  <description>人のコード見てわかった気になっていた 社内の他のインフラエンジニアが作ったnginxのDockerfileなどを見て、環境変数を読み込んでるっぽいらしい記述を横目で見ていたのでnginx.conf上で$HOGEとか書いておけばなんとなく環境変数って読めるんだろうって思ってました。 今回初めて一から作ることになってやっと気付きました。どうもゆとりエンジニアです。 まとめ ランタイムで読む方法とスタートする直前で変換する方法があるけど、後者が良さそう。 以下はこれにたどり着く流れの話です。 今のご時世、環境変数読みたいよね インスタンスにnginxインストールしてconf書き換えみたいな場合は、c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmpon.hatenablog.com%2Fentry%2F2018%2F02%2F07%2F200000&quot; title=&quot;えっ、nginxって$HOGEで環境変数読めないの？？ - まーぽんって誰がつけたの？&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/masato47744/20180125/20180125005441.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-02-07 20:00:00</published>
  <title>えっ、nginxって$HOGEで環境変数読めないの？？</title>
  <type>rich</type>
  <url>https://mpon.hatenablog.com/entry/2018/02/07/200000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
