Improve D8+ nginx doc especially with cookie

Created on 20 May 2024, 7 months ago

Problem/Motivation

The D8+ version can serve static files directly via symfony request. But it's better to serve the files directly via webserver. The current (free)nginx/angie config do not reflect a D8+ cookie check to only serve files for guest users.
In the related apache issue is an example what D7 config helper shows as conditions.

Steps to reproduce

it's obvious

Proposed resolution

Provide config examples with D8+ cookie check.

Remaining tasks

Create config example, test and add to nginx documentation page and README.

User interface changes

-

API changes

-

Data model changes

-

📌 Task
Status

Active

Version

1.0

Component

Documentation

Created by

🇩🇪Germany c-logemann Frankfurt/M, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @c-logemann
  • 🇩🇪Germany c-logemann Frankfurt/M, Germany

    In our company we already use a cookie check to switch auth request on our daily used test systems. I will work on solution / example with a kind of "@"-section switch I think.

  • 🇩🇪Germany c-logemann Frankfurt/M, Germany

    This mapping helps to determine if a drupal 8+ cookie is available:

    map $http_cookie $drupal_cookie {
      default 0;
      ~SSESS 1; # PHP session
    }
    

    See this post for example (with "~SESS" for older drupal versions: https://www.webfoobar.com/node/28

Production build 0.71.5 2024