このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
50_dialy:2021:04:29 [2022/03/17 00:00] – matsui | 50_dialy:2021:04:29 [2023/05/17 01:26] (現在) – matsui | ||
---|---|---|---|
行 39: | 行 39: | ||
volumes: | volumes: | ||
- ./ | - ./ | ||
+ | # - / | ||
#ports: | #ports: | ||
# - 80:80 | # - 80:80 | ||
行 54: | 行 55: | ||
https:// | https:// | ||
+ | |||
+ | |||
+ | ===== tmpfs ===== | ||
+ | |||
+ | tmpfsにfastcgi_cacheを置く場合、tmpfsの設定を入れる | ||
+ | |||
+ | < | ||
+ | tmpfs / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | mkdir /tmpfs | ||
+ | mount /tmpfs | ||
+ | </ | ||
===== X-Forwared-For ===== | ===== X-Forwared-For ===== | ||
行 63: | 行 78: | ||
real_ip_header | real_ip_header | ||
</ | </ | ||
+ | |||
+ | このX-Forwared-Forを入れないと、dockerの場合[[dokuwiki: | ||
===== FastCGI cache ===== | ===== FastCGI cache ===== | ||
+ | http{}の中にfastcgi_cache_pathとfastcgi_cache_keyの記述を追加 | ||
< | < | ||
- | fastcgi_cache_path /config/cache/nginx levels=1:2 keys_zone=cache-zone: | + | http { |
- | fastcgi_cache_key " | + | |
+ | fastcgi_cache_key " | ||
</ | </ | ||