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

Docker镜像php7.4环境如何开启GD库? #19

Closed
shipinbaoku opened this issue Mar 26, 2022 · 8 comments
Closed

Docker镜像php7.4环境如何开启GD库? #19

shipinbaoku opened this issue Mar 26, 2022 · 8 comments

Comments

@shipinbaoku
Copy link

Docker镜像php7.4环境如何开启GD库?
我们在实践过程中,白名单确实存活时间较久。
不过我们也发现,直接点击链接加入白名单直接暴露,墙的检测好像也可以加入白名单然后禁封ip。
目前我们的解决方案是重新写了加入白名单的add.php文件,打开链接后需要再次手动点击按钮加入白名单。
。。。。。。。。。持续测试中。
另外我们想加入个随机验证码功能,用户填写正确的验证码后,再点击手动加入白名单按钮可能更加有效的防止墙自动把它的ip加入系统。
但是该docker镜像中的php7.4没有开启gd库。如何开启gd库?

@ellermister
Copy link
Owner

apt install php7.4-gd

@timmyz
Copy link

timmyz commented Mar 26, 2022

Docker镜像php7.4环境如何开启GD库? 我们在实践过程中,白名单确实存活时间较久。 不过我们也发现,直接点击链接加入白名单直接暴露,墙的检测好像也可以加入白名单然后禁封ip。 目前我们的解决方案是重新写了加入白名单的add.php文件,打开链接后需要再次手动点击按钮加入白名单。 。。。。。。。。。持续测试中。 另外我们想加入个随机验证码功能,用户填写正确的验证码后,再点击手动加入白名单按钮可能更加有效的防止墙自动把它的ip加入系统。 但是该docker镜像中的php7.4没有开启gd库。如何开启gd库?

直接加个密码框,校验通过才能加白名单岂不更好?

@shipinbaoku
Copy link
Author

docker我不是很熟悉。是不是要进入docker容器内部安装GD组件?有没有详细的说明

@shipinbaoku
Copy link
Author

`
docker ps
docker exec -it <容器id> /bin/bash
apt update
apt install php7.4-gd

`

已经安装成功,目前需要输入正确的验证码才可以加入白名单。看能生存多久!

@shipinbaoku
Copy link
Author

如何不使用docker 使用白名单?

@yxbinghe-k
Copy link

如何不使用docker 使用白名单?

这是个好问题,同样想了解!

@ellermister
Copy link
Owner

ip_white_list 可选参数为:

IP 允许单个 IP 访问
IPSEG 允许 IP 段访问
OFF 允许所有 IP 访问

https://hub.docker.com/r/ellermister/nginx-mtproxy

@yxbinghe-k
Copy link

ip_white_list 可选参数为:

IP 允许单个 IP 访问 IPSEG 允许 IP 段访问 OFF 允许所有 IP 访问

https://hub.docker.com/r/ellermister/nginx-mtproxy

感谢你的回复!
我的意思是如何在非docker下部署,依然使用白名单功能!😄
谢谢,好运!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants