litespeedtech / litespeedtech/openlitespeed

Passing system environment variables into LSAPI external app

Open
#453 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.5k
Forks
233
Avg merge
2d 19h
Merged PRs (30d)
5

Description

It seems I cannot pass a system (global) environment variable into a LSAPI app (LSPHP in my case):

![Image](https://github.com/user-attachments/assets/bf256a1f-f70d-400e-b3e2-a2b243b2d7b2)

I would need this very much in a docker based setup. I have the same image for dev, test and prod environments, whereas the database connection parameters differ per environment.

OLS version 1.8.3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by locating the LSAPI external-app configuration and tracing how system environment variables are passed to LSPHP; verify the behavior in the Docker-based development, test, and production setup described in the issue. Done means the differing database connection variables reach the LSAPI application without changing the shared image.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.