mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 10:06:26 +00:00
Compare commits
22 Commits
v2.12.1
...
3e80393235
Author | SHA1 | Date | |
---|---|---|---|
3e80393235 | |||
ee41bb5562 | |||
0cf6b9caa4 | |||
68a9baf206 | |||
d92421d098 | |||
96c58b203e | |||
d499e2bfef | |||
ee03105358 | |||
e1698a903c | |||
3a22a0c09c | |||
82d2476855 | |||
c56e64bce2 | |||
58ae5a1559 | |||
2d490b01dc | |||
8fa3069a8d | |||
a108a5d316 | |||
9827c0b202 | |||
ca6d112ecb | |||
cd882b07d0 | |||
4245e6231c | |||
6a035eaeab | |||
77057284d3 |
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -43,7 +43,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
// Defaults to the Branch name, which is applies to all branches AND pr's
|
// Defaults to the Branch name, which is applies to all branches AND pr's
|
||||||
buildxPushTags = "-t docker.io/jc21/${IMAGE}:github-${BRANCH_LOWER}"
|
buildxPushTags = "-t docker.io/nginxproxymanager/${IMAGE}-dev:${BRANCH_LOWER}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -203,7 +203,13 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
npmGithubPrComment("Docker Image for build ${BUILD_NUMBER} is available on [DockerHub](https://cloud.docker.com/repository/docker/jc21/${IMAGE}) as `jc21/${IMAGE}:github-${BRANCH_LOWER}`\n\n**Note:** ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.", true)
|
npmGithubPrComment("""Docker Image for build ${BUILD_NUMBER} is available on
|
||||||
|
[DockerHub](https://cloud.docker.com/repository/docker/nginxproxymanager/${IMAGE}-dev)
|
||||||
|
as `nginxproxymanager/${IMAGE}-dev:${BRANCH_LOWER}`
|
||||||
|
|
||||||
|
**Note:** ensure you backup your NPM instance before testing this image! Especially if there are database changes
|
||||||
|
**Note:** this is a different docker image namespace than the official image
|
||||||
|
""", true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
54
docker/rootfs/etc/s6-overlay/s6-rc.d/cs-crowdsec-bouncer/script.sh
Executable file
54
docker/rootfs/etc/s6-overlay/s6-rc.d/cs-crowdsec-bouncer/script.sh
Executable file
@ -0,0 +1,54 @@
|
|||||||
|
#!/command/with-contenv bash
|
||||||
|
|
||||||
|
set -e # Exit immediately if a command exits with a non-zero status.
|
||||||
|
|
||||||
|
function set_properties() {
|
||||||
|
sed -i "s,^$1=.*,$1=$2,g" "${3}"
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "Deploy Crowdsec Openresty Bouncer.."
|
||||||
|
if [ -n "${CROWDSEC_OPENRESTY_BOUNCER}" ]; then
|
||||||
|
while IFS= read -r line
|
||||||
|
do
|
||||||
|
if ! [[ "$line" != "^#" ]] || [[ "$line" != "^\n" ]]; then
|
||||||
|
name=$(echo "$line" | cut -d "=" -f1)
|
||||||
|
value=$(echo "$line" | cut -d "=" -f2)
|
||||||
|
if grep -q "${name}" /defaults/crowdsec/crowdsec-openresty-bouncer.conf ; then
|
||||||
|
set_properties "${name}" "${value}" "/defaults/crowdsec/crowdsec-openresty-bouncer.conf"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done <<< "${CROWDSEC_OPENRESTY_BOUNCER}"
|
||||||
|
else
|
||||||
|
mkdir -p /data/crowdsec/templates
|
||||||
|
sed -i 's|/defaults/crowdsec|/data/crowdsec|' /etc/nginx/conf.d/crowdsec_openresty.conf
|
||||||
|
|
||||||
|
if [ -f /data/crowdsec/crowdsec-openresty-bouncer.conf ]; then
|
||||||
|
echo "Patch crowdsec-openresty-bouncer.conf .."
|
||||||
|
sed "s/=.*//g" /data/crowdsec/crowdsec-openresty-bouncer.conf > /tmp/crowdsec.conf.raw
|
||||||
|
sed "s/=.*//g" /defaults/crowdsec/crowdsec-openresty-bouncer.conf > /tmp/crowdsec-openresty-bouncer.conf.raw
|
||||||
|
if grep -vf /tmp/crowdsec.conf.raw /tmp/crowdsec-openresty-bouncer.conf.raw ; then
|
||||||
|
grep -vf /tmp/crowdsec.conf.raw /tmp/crowdsec-openresty-bouncer.conf.raw > /tmp/config.newvals
|
||||||
|
cp /data/crowdsec/crowdsec-openresty-bouncer.conf /data/crowdsec/crowdsec-openresty-bouncer.conf.bak
|
||||||
|
grep -f /tmp/config.newvals /defaults/crowdsec/crowdsec-openresty-bouncer.conf >> /data/crowdsec/crowdsec-openresty-bouncer.conf
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Deploy new crowdsec-openresty-bouncer.conf .."
|
||||||
|
cp /defaults/crowdsec/crowdsec-openresty-bouncer.conf /data/crowdsec/crowdsec-openresty-bouncer.conf
|
||||||
|
fi
|
||||||
|
#Make sure the config location is where we get the config from instead of /default/
|
||||||
|
sed -i 's|/defaults/crowdsec|/data/crowdsec|' /data/crowdsec/crowdsec-openresty-bouncer.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#Make sure we only copy files that don't exist in /data/crowdsec.
|
||||||
|
if [ -d "/data/crowdsec/templates" ]; then
|
||||||
|
echo "Deploy Crowdsec Templates .."
|
||||||
|
cd /defaults/crowdsec/templates/
|
||||||
|
for file in *.html
|
||||||
|
do
|
||||||
|
if [ ! -e "/data/crowdsec/templates/${file}" ]
|
||||||
|
then
|
||||||
|
cp -r "/defaults/crowdsec/templates/${file}" "/data/crowdsec/templates/"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
@ -0,0 +1 @@
|
|||||||
|
oneshot
|
@ -0,0 +1,2 @@
|
|||||||
|
# shellcheck shell=bash
|
||||||
|
/etc/s6-overlay/s6-rc.d/cs-crowdsec-bouncer/script.sh
|
@ -137,5 +137,13 @@ Email: admin@example.com
|
|||||||
Password: changeme
|
Password: changeme
|
||||||
```
|
```
|
||||||
|
|
||||||
Immediately after logging in with this default user you will be asked to modify your details and change your password.
|
Immediately after logging in with this default user you will be asked to modify your details and change your password. You can change defaults with:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
environment:
|
||||||
|
INITIAL_ADMIN_EMAIL: my@example.com
|
||||||
|
INITIAL_ADMIN_PASSWORD: mypassword1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"credentials": "dns_acmedns_api_url = http://acmedns-server/\ndns_acmedns_registration_file = /data/acme-registration.json",
|
"credentials": "dns_acmedns_api_url = http://acmedns-server/\ndns_acmedns_registration_file = /data/acme-registration.json",
|
||||||
"full_plugin_name": "dns-acmedns"
|
"full_plugin_name": "dns-acmedns"
|
||||||
},
|
},
|
||||||
"active24":{
|
"active24":{
|
||||||
"name": "Active24",
|
"name": "Active24",
|
||||||
"package_name": "certbot-dns-active24",
|
"package_name": "certbot-dns-active24",
|
||||||
"version": "~=1.5.1",
|
"version": "~=1.5.1",
|
||||||
@ -424,13 +424,13 @@
|
|||||||
"full_plugin_name": "dns-rfc2136"
|
"full_plugin_name": "dns-rfc2136"
|
||||||
},
|
},
|
||||||
"rockenstein": {
|
"rockenstein": {
|
||||||
"name": "rockenstein AG",
|
"name": "rockenstein AG",
|
||||||
"package_name": "certbot-dns-rockenstein",
|
"package_name": "certbot-dns-rockenstein",
|
||||||
"version": "~=1.0.0",
|
"version": "~=1.0.0",
|
||||||
"dependencies": "",
|
"dependencies": "",
|
||||||
"credentials": "dns_rockenstein_token=<token>",
|
"credentials": "dns_rockenstein_token=<token>",
|
||||||
"full_plugin_name": "dns-rockenstein"
|
"full_plugin_name": "dns-rockenstein"
|
||||||
},
|
},
|
||||||
"route53": {
|
"route53": {
|
||||||
"name": "Route 53 (Amazon)",
|
"name": "Route 53 (Amazon)",
|
||||||
"package_name": "certbot-dns-route53",
|
"package_name": "certbot-dns-route53",
|
||||||
|
Reference in New Issue
Block a user