# /etc/nginx/conf.d/nextcloud-http.conf # # Shared HTTP-context settings for all Nextcloud vhosts on this host # (box.meson.in, komeda.onni.me, nus.meson.in, ...). # # These are `map`/`upstream` blocks, which nginx only allows at the # http {} level -- they can NOT live inside a per-site server {} block, # so they can't be folded into nextcloud-common.conf below. This file # is picked up automatically by the distro's default # `include /etc/nginx/conf.d/*.conf;` line in nginx.conf, so nothing # else needs to reference it. # PHP-FPM pool shared by all Nextcloud sites. # If a site runs a different PHP version, override with its own # `upstream php-handler { ... }` inside that site's file INSTEAD of # using this one (an upstream name can only be defined once per # http {} block, so don't do both). upstream php-handler { server unix:/var/run/php/php8.4-fpm.sock; } # Set the `immutable` cache control option only for assets with a # cache-busting `v` argument. map $arg_v $asset_immutable { "" ""; default "immutable"; } # Skip access-log entries for successful/redirect responses. map $status $loggable { ~^[23] 0; default 1; }