-
Notifications
You must be signed in to change notification settings - Fork 60
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
Added both lua-resty-http lua plugin and Crowdsec-Openresty-Bouncer #7
Merged
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ac76802
Added lua-resty-http plugin
LePresidente b4804e6
Install Crowdsec OpenResty Bouncer directly into the docker image.
LePresidente c9cb887
Fixed build to correctly install crowdsec-openresty-bouncer
LePresidente f819b8a
Updated crowdsec openresty bouncer to 0.1.7
LePresidente 48821ea
Cleanup crowdsec folder after install.
LePresidente 6f7e8ac
remove the crowdsec install tgz file.
LePresidente 7e6f7c5
added CROWDSEC_OPENRESTY_BOUNCER_VERSION environment version to jenki…
LePresidente 7793f92
missed one arg in the buildx command.
LePresidente 6aba66a
Merge branch 'NginxProxyManager:master' into master
LePresidente b987850
Add extra check for environment variable
LePresidente 7aa8137
Merge branch 'master' of https://github.com/LePresidente/docker-nginx…
LePresidente File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash -e | ||
|
||
BLUE='\E[1;34m' | ||
CYAN='\E[1;36m' | ||
YELLOW='\E[1;33m' | ||
GREEN='\E[1;32m' | ||
RESET='\E[0m' | ||
|
||
echo -e "${BLUE}❯ ${CYAN}Installing Crowdsec OpenResty Bouncer ${YELLOW}${CROWDSEC_OPENRESTY_BOUNCER_VERSION}...${RESET}" | ||
|
||
LePresidente marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cd /tmp | ||
wget "https://github.com/crowdsecurity/cs-openresty-bouncer/releases/download/v${CROWDSEC_OPENRESTY_BOUNCER_VERSION}/crowdsec-openresty-bouncer.tgz" | ||
mkdir -p /tmp/crowdsec | ||
tar xzf crowdsec-openresty-bouncer.tgz --strip 1 -C /tmp/crowdsec | ||
rm -rf /tmp/crowdsec-openresty-bouncer.tgz | ||
cd /tmp/crowdsec | ||
|
||
bash ./install.sh --NGINX_CONF_DIR=/etc/nginx/conf.d --LIB_PATH=/etc/nginx/lualib --CONFIG_PATH=/defaults/crowdsec --DATA_PATH=/defaults/crowdsec --docker | ||
sed -i 's|ENABLED=.*|ENABLED=false|' /defaults/crowdsec/crowdsec-openresty-bouncer.conf | ||
rm /tmp/crowdsec | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be rm -rf /tmp/crowdsec |
||
|
||
jc21 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
echo -e "${BLUE}❯ ${GREEN}OpenResty plugins install completed${RESET}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
${CROWDSEC_OPENRESTY_BOUNCER_VERSION:-}
instead of${CROWDSEC_OPENRESTY_BOUNCER_VERSION}
so that the variable falls back to empty, it will be checked with my comment below