Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set allowed clients on php-fpm image #12

Open
jasonmccallister opened this issue Oct 26, 2020 · 0 comments
Open

Set allowed clients on php-fpm image #12

jasonmccallister opened this issue Oct 26, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jasonmccallister
Copy link
Member

jasonmccallister commented Oct 26, 2020

Description

The default php-fpm config allows access to from all connections/clients.

If this value is left blank, connections will be accepted from any ip address

We should consider an option to limit the connection to only specific clients. The pfp-fpm configuration has the option listen.allowed_clients that takes multiple IP addresses separated by commas (e.g. 10.0.0.1 and 10.0.0.3).

Since we cannot hard code an IP address we should expose an environment variable (e.g. PHP_FPM_ALLOWED_CLIENTS) in the configuration file to allow users to customize the allowed clients. Perhaps the default should be 127.0.0.1 for security purposes?

@jasonmccallister jasonmccallister added the enhancement New feature or request label Oct 26, 2020
@jasonmccallister jasonmccallister self-assigned this Oct 26, 2020
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

No branches or pull requests

1 participant