Comments (2)
Directly accessing environmental variables in an NGINX config file isn't natively supported. Using sed to replace a token in the config file or using LUA or PERL to get variables into an NGINX configuration file.
from docker-waf.
Directly accessing environmental variables in an NGINX config file isn't natively supported. Using sed to replace a token in the config file or using LUA or PERL to get variables into an NGINX configuration file.
I Can't open this link
how to Using sed to replace a token in the config file
This is my Docker file,dockerwaf_waf is your image
FROM dockerwaf_waf
COPY nginx.conf /usr/local/nginx/conf/nginx.conf
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod 777 /usr/local/nginx/conf/nginx.conf
RUN chmod +x /usr/local/bin/entrypoint.sh
#入口
#ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
#命令
CMD /usr/local/bin/entrypoint.sh
entrypoint.sh
sed -i 's/MY_PROXY_SITE/'$MY_PROXY_SITE'/g' /usr/local/nginx/conf/nginx.conf
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
but I Can't start the container
from docker-waf.
Related Issues (11)
- Why not libModSec with the ModSecurity-nginx connector. HOT 4
- "Nginx not found" when compiling waf-3 HOT 10
- Changes over waf-3 so that it runs nginx without problems and without errors and other suggestions HOT 1
- How can I test my setup is working? HOT 1
- can I pull it in docker? HOT 1
- Anomaly detection does not triggered HOT 2
- WAF exited with code 127 - nginx not found HOT 12
- Error build waf HOT 1
- Use official NGINX container image as base HOT 3
- ModSecurityEnabled on Left An Error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-waf.