Skip to content

chore: allow configuring fastcgi_pass through environment variable#4

Merged
XSmeets merged 3 commits into
mainfrom
XSmeets-patch-1
Apr 7, 2026
Merged

chore: allow configuring fastcgi_pass through environment variable#4
XSmeets merged 3 commits into
mainfrom
XSmeets-patch-1

Conversation

@XSmeets
Copy link
Copy Markdown
Member

@XSmeets XSmeets commented Apr 7, 2026

This should allow running the container properly in Kubernetes.

@XSmeets XSmeets requested a review from Copilot April 7, 2026 11:21
@XSmeets XSmeets self-assigned this Apr 7, 2026
@XSmeets XSmeets added the enhancement New feature or request label Apr 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to make the fastcgi_pass upstream configurable via an environment variable so the nginx container can be deployed more flexibly (e.g., in Kubernetes).

Changes:

  • Replace the hard-coded fastcgi_pass phpfpm:9000; with an environment-variable-based value in the nginx config template.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread nginx.conf.template Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread nginx.conf.template
Comment thread Dockerfile Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread nginx.conf.template
Comment on lines 46 to +50
location ^~ {
alias /var/www/html/public;

location ~ \.php(/|$) {
fastcgi_pass phpfpm:9000;
fastcgi_pass ${FASTCGI_PASS};
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

location directive is syntactically invalid as written: location ^~ { is missing the required URI/prefix (e.g., /). Nginx will fail to start with a config parse error; please add the intended location match after ^~ (or change to a valid location / { ... } block).

Copilot uses AI. Check for mistakes.
@XSmeets XSmeets merged commit c0159a8 into main Apr 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants